[package]
edition = "2021"
name = "link-section"
version = "0.15.0"
authors = ["Matt Mastracci <matthew@mastracci.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Link-time initialized slices for Rust, with full support for Linux, macOS, Windows, WASM and many more platforms."
readme = "README.md"
categories = [
"development-tools::build-utils",
"no-std",
"no-std::no-alloc",
"embedded",
"development-tools::procedural-macro-helpers",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/mmastrac/linktime"
[features]
default = [
"proc_macro",
"std",
]
proc_macro = ["dep:linktime-proc-macro"]
std = []
[lib]
name = "link_section"
path = "src/lib.rs"
[[example]]
name = "link-section-const"
path = "examples/const.rs"
[[example]]
name = "link-section-example"
path = "examples/example.rs"
[dependencies.linktime-proc-macro]
version = "0.1.0"
features = ["link_section"]
optional = true
[dev-dependencies]
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(linktime_used_linker)"]