Browse Source

Add license and docs.rs metadata for 0.2.0-alpha.2

luojia65 4 years ago
parent
commit
6334dc0235
2 changed files with 10 additions and 3 deletions
  1. 1 1
      README.md
  2. 9 2
      rustsbi/Cargo.toml

+ 1 - 1
README.md

@@ -13,7 +13,7 @@ See [releases](https://github.com/luojia65/rustsbi/releases).
 Binaries are available for platforms which can be found on
 [platform support page](https://github.com/luojia65/rustsbi/tree/master/platform).
 This page includes an instruction to write your own RustSBI implementation on production use,
-and some reference implementations for experiments and reference.
+and some reference implementations for experiments.
 
 ## Features
 

+ 9 - 2
rustsbi/Cargo.toml

@@ -1,11 +1,11 @@
 [package]
 name = "rustsbi"
 description = "Minimal RISC-V's SBI implementation library in Rust"
-version = "0.2.0-alpha.1"
+version = "0.2.0-alpha.2"
 authors = ["luojia65 <[email protected]>"]
 repository = "https://github.com/luojia65/rustsbi"
 documentation = "https://docs.rs/rustsbi"
-license = "MIT" # OR MulanPSL-2.0"
+license = "MulanPSL-2.0 OR MIT"
 readme = "../README.md"
 keywords = ["riscv", "sbi", "rustsbi"]
 categories = ["os", "embedded", "hardware-support", "no-std"]
@@ -13,6 +13,13 @@ edition = "2018"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[package.metadata.docs.rs]
+default-target = "riscv64imac-unknown-none-elf"
+targets = [
+    "riscv32i-unknown-none-elf", "riscv32imc-unknown-none-elf", "riscv32imac-unknown-none-elf",
+    "riscv64imac-unknown-none-elf", "riscv64gc-unknown-none-elf",
+]
+
 [dependencies]
 embedded-hal = "1.0.0-alpha.1"
 nb = "1.0"