Cargo.toml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [package]
  2. authors = ["Jorge Aparicio <[email protected]>"]
  3. name = "compiler_builtins"
  4. version = "0.1.39"
  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. [[example]]
  55. name = "intrinsics"
  56. required-features = ["compiler-builtins"]
  57. [workspace]
  58. members = ["testcrate"]
  59. [profile.release]
  60. panic = 'abort'
  61. [profile.dev]
  62. panic = 'abort'