Cargo.toml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [package]
  2. name = "rustsbi"
  3. description = "Minimal RISC-V's SBI implementation library in Rust"
  4. version = "0.4.0"
  5. authors = [
  6. "Luo Jia <[email protected]>",
  7. "Campbell He <[email protected]>",
  8. "Yifan Wu <[email protected]>",
  9. ]
  10. documentation = "https://docs.rs/rustsbi"
  11. edition.workspace = true
  12. license.workspace = true
  13. repository.workspace = true
  14. readme = "README.md"
  15. keywords = ["riscv", "sbi", "rustsbi"]
  16. categories = ["os", "embedded", "hardware-support", "no-std"]
  17. exclude = ["/.github"]
  18. [dependencies]
  19. sbi-spec = { version = "0.0.8", path = "sbi-spec" }
  20. riscv = { version = "0.12.0", optional = true, default-features = false }
  21. sbi-rt = { version = "0.0.3", features = ["integer-impls"], optional = true, path = "sbi-rt" }
  22. rustsbi-macros = { version = "0.0.2", path = "macros" }
  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. # Enables the struct `Forward`.
  31. # Struct `Forward` uses the current SBI environment to implement the RustSBI environment.
  32. # This feature is only usable when current software runs on another SBI environment,
  33. # e.g., hypervisors for RISC-V architecture.
  34. forward = ["dep:sbi-rt"]
  35. [package.metadata.docs.rs]
  36. default-target = "riscv64imac-unknown-none-elf"
  37. targets = [
  38. "riscv32imac-unknown-none-elf", "riscv64imac-unknown-none-elf",
  39. ]
  40. [workspace]
  41. resolver = "2"
  42. members = [
  43. "macros",
  44. "sbi-rt",
  45. "sbi-spec",
  46. "sbi-testing",
  47. ]
  48. [workspace.package]
  49. edition = "2021"
  50. license = "MulanPSL-2.0 OR MIT"
  51. repository = "https://github.com/rustsbi/rustsbi"
  52. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html