Cargo.toml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. exclude = ["/.github"]
  18. [dependencies]
  19. sbi-spec = "0.0.5-rc.2"
  20. riscv = { version = "0.10.1", optional = true }
  21. [features]
  22. default = ["machine"]
  23. # Enable RISC-V SBI 2.0-rc1 extensions, i.e. the DBCN extension
  24. # It will add a generic parameter to RustSBI instance structure.
  25. # FIXME: remove this feature (and from CI workflow) on rustsbi 0.4.0 and adds this generic parameter permanently onto RustSBI.
  26. sbi_2_0 = []
  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 = ["dep:riscv"]
  32. # Build RustSBI singleton
  33. # This would enable `init_*` functions. It will take extra place on bss or data region
  34. # to take care of singleton reference locks.
  35. # Disable this feature to use instance based RustSBI environment.
  36. singleton = ["dep:riscv", "machine"]
  37. # Support legacy extension; this feature is not included by default.
  38. legacy = ["sbi-spec/legacy", "singleton"]
  39. [package.metadata.docs.rs]
  40. default-target = "riscv64imac-unknown-none-elf"
  41. targets = [
  42. "riscv32imac-unknown-none-elf", "riscv64imac-unknown-none-elf",
  43. ]
  44. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html