Cargo.toml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. sbi-rt = { version = "0.0.3-rc.5", features = ["integer-impls"], optional = true }
  22. rustsbi-macros = { version = "0.0.0", 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 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. members = [
  42. "macros",
  43. "sbi-rt",
  44. "sbi-spec",
  45. "sbi-testing",
  46. ]
  47. resolver = "2"
  48. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html