Cargo.toml 1.7 KB

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