4
0

Cargo.toml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [package]
  2. name = "rustsbi"
  3. description = "Minimal RISC-V's SBI implementation library in Rust"
  4. version = "0.4.0-alpha.1"
  5. authors = [
  6. "Luo Jia <[email protected]>",
  7. "Campbell He <[email protected]>",
  8. "Yifan Wu <[email protected]>",
  9. ]
  10. repository = "https://github.com/rustsbi/rustsbi"
  11. documentation = "https://docs.rs/rustsbi"
  12. license = "MulanPSL-2.0 OR MIT"
  13. readme = "README.md"
  14. keywords = ["riscv", "sbi", "rustsbi"]
  15. categories = ["os", "embedded", "hardware-support", "no-std"]
  16. edition = "2021"
  17. exclude = ["/.github"]
  18. [dependencies]
  19. sbi-spec = "0.0.7-alpha.2"
  20. riscv = { version = "0.10.1", optional = true }
  21. rustsbi-macros = { path = "macros" }
  22. static_assertions = "1.1.0"
  23. [features]
  24. default = []
  25. # Run RustSBI on machine mode
  26. # This feature enables to use RISC-V primitives on current machine mode environment
  27. # If you are developing a cross-architecture virtual machine, consider disabling this feature
  28. # to customize environment variables for RISC-V architecture like mvendorid, mimpid, etc.
  29. machine = ["rustsbi-macros/machine", "dep:riscv"]
  30. [package.metadata.docs.rs]
  31. default-target = "riscv64imac-unknown-none-elf"
  32. targets = [
  33. "riscv32imac-unknown-none-elf", "riscv64imac-unknown-none-elf",
  34. ]
  35. [workspace]
  36. members = ["macros"]
  37. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html