Cargo.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [package]
  2. authors = ["Jorge Aparicio <japaricious@gmail.com>"]
  3. name = "compiler_builtins"
  4. version = "0.1.19"
  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. # Flag this library as the unstable compiler-builtins lib
  41. compiler-builtins = []
  42. # Generate memory-related intrinsics like memcpy
  43. mem = []
  44. # Mangle all names so this can be linked in with other versions or other
  45. # compiler-rt implementations. Also used for testing
  46. mangled-names = []
  47. # Don't generate lang items for i128 intrisnics and such
  48. no-lang-items = []
  49. # Only used in the compiler's build system
  50. rustc-dep-of-std = ['compiler-builtins', 'core']
  51. [[example]]
  52. name = "intrinsics"
  53. required-features = ["compiler-builtins"]
  54. [workspace]
  55. members = ["testcrate"]
  56. [profile.release]
  57. panic = 'abort'
  58. [profile.dev]
  59. panic = 'abort'