| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.85" |
| 15 |
name = "link-section" |
| 16 |
version = "0.19.3" |
| 17 |
authors = ["Matt Mastracci <[email protected]>"] |
| 18 |
build = false |
| 19 |
autolib = false |
| 20 |
autobins = false |
| 21 |
autoexamples = false |
| 22 |
autotests = false |
| 23 |
autobenches = false |
| 24 |
description = "Link-time initialized slices for Rust, with full support for Linux, macOS, Windows, WASM and many more platforms." |
| 25 |
readme = "README.md" |
| 26 |
categories = [ |
| 27 |
"development-tools::build-utils", |
| 28 |
"no-std", |
| 29 |
"no-std::no-alloc", |
| 30 |
"embedded", |
| 31 |
"development-tools::procedural-macro-helpers", |
| 32 |
] |
| 33 |
license = "Apache-2.0 OR MIT" |
| 34 |
repository = "https://github.com/mmastrac/linktime" |
| 35 |
|
| 36 |
[features] |
| 37 |
default = [ |
| 38 |
"proc_macro", |
| 39 |
"std", |
| 40 |
] |
| 41 |
proc_macro = ["dep:linktime-proc-macro"] |
| 42 |
std = [] |
| 43 |
|
| 44 |
[lib] |
| 45 |
name = "link_section" |
| 46 |
path = "src/lib.rs" |
| 47 |
|
| 48 |
[[example]] |
| 49 |
name = "link-section-const" |
| 50 |
path = "examples/const.rs" |
| 51 |
|
| 52 |
[[example]] |
| 53 |
name = "link-section-dyn" |
| 54 |
path = "examples/dyn.rs" |
| 55 |
|
| 56 |
[[example]] |
| 57 |
name = "link-section-empty" |
| 58 |
path = "examples/empty.rs" |
| 59 |
|
| 60 |
[[example]] |
| 61 |
name = "link-section-example" |
| 62 |
path = "examples/example.rs" |
| 63 |
|
| 64 |
[[example]] |
| 65 |
name = "link-section-movable" |
| 66 |
path = "examples/movable.rs" |
| 67 |
|
| 68 |
[[example]] |
| 69 |
name = "link-section-movable-no-macro" |
| 70 |
path = "examples/movable-no-macro.rs" |
| 71 |
|
| 72 |
[[example]] |
| 73 |
name = "link-section-mut" |
| 74 |
path = "examples/mut.rs" |
| 75 |
|
| 76 |
[[example]] |
| 77 |
name = "link-section-mut-no-macro" |
| 78 |
path = "examples/mut-no-macro.rs" |
| 79 |
|
| 80 |
[[example]] |
| 81 |
name = "link-section-ref" |
| 82 |
path = "examples/ref.rs" |
| 83 |
|
| 84 |
[[test]] |
| 85 |
name = "macrotest" |
| 86 |
path = "tests/macrotest.rs" |
| 87 |
|
| 88 |
[dependencies.linktime-proc-macro] |
| 89 |
version = "0.2.3" |
| 90 |
features = ["link_section"] |
| 91 |
optional = true |
| 92 |
|
| 93 |
[dev-dependencies.macrotest] |
| 94 |
version = "1" |
| 95 |
|
| 96 |
[dev-dependencies.tempfile] |
| 97 |
version = "3" |
| 98 |
|
| 99 |
[dev-dependencies.trybuild] |
| 100 |
version = "1" |
| 101 |
|
| 102 |
[dev-dependencies.walkdir] |
| 103 |
version = "2" |
| 104 |
|
| 105 |
[lints.rust.unexpected_cfgs] |
| 106 |
level = "warn" |
| 107 |
priority = 0 |
| 108 |
check-cfg = [ |
| 109 |
"cfg(linktime_used_linker)", |
| 110 |
"cfg(linktime_asan)", |
| 111 |
] |