Cargo.toml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [package]
  2. name = "rustsbi"
  3. description = "Minimal RISC-V's SBI implementation library in Rust"
  4. version = "0.3.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. [dependencies]
  18. sbi-spec = "0.0.5-rc.2"
  19. riscv = { version = "0.10.1", optional = true }
  20. [features]
  21. default = ["machine"]
  22. # Run RustSBI on machine mode
  23. # This feature enables to use RISC-V primitives on current machine mode environment
  24. # If you are developing a cross-architecture virtual machine, consider disabling this feature
  25. # to customize environment variables for RISC-V architecture like mvendorid, mimpid, etc.
  26. machine = ["dep:riscv"]
  27. # Build RustSBI singleton
  28. # This would enable `init_*` functions. It will take extra place on bss or data region
  29. # to take care of singleton reference locks.
  30. # Disable this feature to use instance based RustSBI environment.
  31. singleton = ["dep:riscv", "machine"]
  32. # Support legacy extension; this feature is not included by default.
  33. legacy = ["sbi-spec/legacy", "singleton"]
  34. [package.metadata.docs.rs]
  35. default-target = "riscv64imac-unknown-none-elf"
  36. targets = [
  37. "riscv32imac-unknown-none-elf", "riscv64imac-unknown-none-elf",
  38. ]
  39. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html