Cargo.toml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [package]
  2. authors = ["Jorge Aparicio <japaricious@gmail.com>"]
  3. name = "compiler_builtins"
  4. version = "0.1.0"
  5. license = "MIT/Apache-2.0"
  6. readme = "README.md"
  7. repository = "https://github.com/rust-lang-nursery/compiler-builtins"
  8. homepage = "https://github.com/rust-lang-nursery/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. [lib]
  15. test = false
  16. [dependencies]
  17. # For more information on this dependency see rust-lang/rust's
  18. # `src/tools/rustc-std-workspace` folder
  19. core = { version = "1.0.0", optional = true, package = 'rustc-std-workspace-core' }
  20. [build-dependencies]
  21. cc = { optional = true, version = "1.0" }
  22. [dev-dependencies]
  23. panic-handler = { path = 'crates/panic-handler' }
  24. [features]
  25. default = ["compiler-builtins"]
  26. # Enable compilation of C code in compiler-rt, filling in some more optimized
  27. # implementations and also filling in unimplemented intrinsics
  28. c = ["cc"]
  29. # Flag this library as the unstable compiler-builtins lib
  30. compiler-builtins = []
  31. # Generate memory-related intrinsics like memcpy
  32. mem = []
  33. # Mangle all names so this can be linked in with other versions or other
  34. # compiler-rt implementations. Also used for testing
  35. mangled-names = []
  36. # Don't generate lang items for i128 intrisnics and such
  37. no-lang-items = []
  38. # Only used in the compiler's build system
  39. rustc-dep-of-std = ['c', 'compiler-builtins', 'core']
  40. [[example]]
  41. name = "intrinsics"
  42. required-features = ["c", "compiler-builtins"]
  43. [workspace]
  44. members = ["testcrate"]
  45. [profile.release]
  46. panic = 'abort'
  47. [profile.dev]
  48. panic = 'abort'