Cargo.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [package]
  2. name = "rustsbi"
  3. description = "Minimal RISC-V's SBI implementation library in Rust"
  4. version = "0.3.2-rc.2"
  5. authors = [
  6. "Luo Jia <me@luojia.cc>",
  7. "Campbell He <hkp18@mails.tsinghua.edu.cn>",
  8. "Yifan Wu <shinbokuow@163.com>",
  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"
  19. riscv = { version = "0.10.1", optional = true }
  20. [features]
  21. default = ["machine"]
  22. # Enable RISC-V SBI 2.0-rc1 extensions, i.e. the DBCN extension
  23. # It will add a generic parameter to RustSBI instance structure.
  24. # FIXME: remove this feature (and from CI workflow) on rustsbi 0.4.0 and adds this generic parameter permanently onto RustSBI.
  25. sbi_2_0 = []
  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 = ["dep:riscv"]
  31. # Build RustSBI singleton
  32. # This would enable `init_*` functions. It will take extra place on bss or data region
  33. # to take care of singleton reference locks.
  34. # Disable this feature to use instance based RustSBI environment.
  35. singleton = ["dep:riscv", "machine"]
  36. # Support legacy extension; this feature is not included by default.
  37. legacy = ["sbi-spec/legacy", "singleton"]
  38. [package.metadata.docs.rs]
  39. default-target = "riscv64imac-unknown-none-elf"
  40. targets = [
  41. "riscv32imac-unknown-none-elf", "riscv64imac-unknown-none-elf",
  42. ]
  43. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html