Cargo.toml 1.3 KB

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