1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
name = "shadow-rs"
version = "1.1.1"
authors = ["baoyachi <liaoymxsdl@gmail.com>"]
build = false
exclude = [
"shadow-rs.png",
"build_module.png",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A build-time information stored in your rust project"
homepage = "https://github.com/baoyachi/shadow-rs"
documentation = "https://docs.rs/shadow-rs"
readme = "README.md"
keywords = [
"cargo",
"build-script",
"build",
"shadow",
"compile",
]
categories = [
"development-tools",
"development-tools::build-utils",
]
license = "MIT AND Apache-2.0"
repository = "https://github.com/baoyachi/shadow-rs"
[package.metadata.docs.rs]
all-features = true
[features]
build = [
"time",
#"tzdb",
#"is_debug/std",
"std",
]
default = [
"git2",
#"tzdb",
"build",
]
metadata = [
"cargo_metadata",
"serde_json",
]
no_std = []
std = []
[lib]
name = "shadow_rs"
path = "src/lib.rs"
[[example]]
name = "builtin_fn"
path = "examples/builtin_fn.rs"
required-features = ["build", "git2"] # without +git2 some functions resort to running git(1), but it's unavailable in Debian builds/tests
[dependencies.cargo_metadata]
version = "0.19.1"
optional = true
default-features = false
[dependencies.const_format]
version = "0.2.22"
default-features = false
[dependencies.document-features]
version = "0.2"
optional = true
[dependencies.git2]
version = ">= 0.19, < 0.21"
optional = true
default-features = false
[dependencies.is_debug]
version = "1"
default-features = false
[dependencies.serde_json]
version = "1"
optional = true
default-features = true # "serde_json requires that either `std` (default) or `alloc` feature is enabled"
[dependencies.time]
version = "0.3.36"
features = [
"formatting",
"local-offset",
"parsing",
]
optional = true
default-features = false
[disabled.dependencies.tzdb]
version = "0.7.2"
features = [
"local",
"now",
]
optional = true
default-features = false
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.fs_extra]
version = "1"
[dev-dependencies.winnow]
version = "0.6"
|