Cargo.toml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. [package]
  2. authors = ["Jorge Aparicio <[email protected]>"]
  3. name = "compiler_builtins"
  4. version = "0.1.70"
  5. license = "MIT/Apache-2.0"
  6. readme = "README.md"
  7. repository = "https://github.com/rust-lang/compiler-builtins"
  8. homepage = "https://github.com/rust-lang/compiler-builtins"
  9. documentation = "https://docs.rs/compiler_builtins"
  10. description = """
  11. Compiler intrinsics used by the Rust compiler. Also available for other targets
  12. if necessary!
  13. """
  14. include = [
  15. '/Cargo.toml',
  16. '/build.rs',
  17. '/src/*',
  18. '/examples/*',
  19. '/LICENSE.txt',
  20. '/README.md',
  21. '/compiler-rt/*',
  22. '/libm/src/math/*',
  23. ]
  24. links = 'compiler-rt'
  25. [lib]
  26. test = false
  27. [dependencies]
  28. # For more information on this dependency see rust-lang/rust's
  29. # `src/tools/rustc-std-workspace` folder
  30. core = { version = "1.0.0", optional = true, package = 'rustc-std-workspace-core' }
  31. [build-dependencies]
  32. cc = { optional = true, version = "1.0" }
  33. [dev-dependencies]
  34. panic-handler = { path = 'crates/panic-handler' }
  35. [features]
  36. default = ["compiler-builtins"]
  37. # Enable compilation of C code in compiler-rt, filling in some more optimized
  38. # implementations and also filling in unimplemented intrinsics
  39. c = ["cc"]
  40. # Workaround for the Cranelift codegen backend. Disables any implementations
  41. # which use inline assembly and fall back to pure Rust versions (if avalible).
  42. no-asm = []
  43. # Flag this library as the unstable compiler-builtins lib
  44. compiler-builtins = []
  45. # Generate memory-related intrinsics like memcpy
  46. mem = []
  47. # Mangle all names so this can be linked in with other versions or other
  48. # compiler-rt implementations. Also used for testing
  49. mangled-names = []
  50. # Don't generate lang items for i128 intrisnics and such
  51. no-lang-items = []
  52. # Only used in the compiler's build system
  53. rustc-dep-of-std = ['compiler-builtins', 'core']
  54. # This makes certain traits and function specializations public that
  55. # are not normally public but are required by the `testcrate`
  56. public-test-deps = []
  57. [[example]]
  58. name = "intrinsics"
  59. required-features = ["compiler-builtins"]
  60. [workspace]
  61. members = ["testcrate"]
  62. [profile.release]
  63. panic = 'abort'
  64. [profile.dev]
  65. panic = 'abort'