Cargo.toml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.3"
  20. riscv = { version = "0.10.1", optional = true }
  21. # TODO change to version number once sbi-rt releases a new version
  22. sbi-rt = { git = "https://github.com/rustsbi/sbi-rt", features = ["integer-impls"], optional = true }
  23. rustsbi-macros = { version = "0.4.0-alpha.1", path = "macros" }
  24. static_assertions = "1.1.0"
  25. [features]
  26. default = []
  27. # Run RustSBI on machine mode.
  28. # This feature enables to use RISC-V primitives on current machine mode environment
  29. # If you are developing a cross-architecture virtual machine, consider disabling this feature
  30. # to customize environment variables for RISC-V architecture like mvendorid, mimpid, etc.
  31. machine = ["rustsbi-macros/machine", "dep:riscv"]
  32. # Enables the struct `Forward`.
  33. # Struct `Forward` uses current SBI environment to implement the RustSBI environment.
  34. # This feature is only usable when current software runs on another SBI environment,
  35. # e.g. hypervisors for RISC-V architecture.
  36. forward = ["dep:sbi-rt"]
  37. [package.metadata.docs.rs]
  38. default-target = "riscv64imac-unknown-none-elf"
  39. targets = [
  40. "riscv32imac-unknown-none-elf", "riscv64imac-unknown-none-elf",
  41. ]
  42. [workspace]
  43. members = ["macros"]
  44. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html