- Vendor coarsetime crate with portable-atomic fallback - Use portable-atomic on targets without 64-bit atomics - Patch crates.io to use local coarsetime - Fixes MIPS build failure (AtomicU64 missing)
83 lines
1.9 KiB
TOML
83 lines
1.9 KiB
TOML
# 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 = "2018"
|
|
name = "coarsetime"
|
|
version = "0.1.37"
|
|
authors = ["Frank Denis <github@pureftpd.org>"]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Time and duration crate optimized for speed"
|
|
homepage = "https://github.com/jedisct1/rust-coarsetime"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"time",
|
|
"date",
|
|
"duration",
|
|
]
|
|
categories = [
|
|
"concurrency",
|
|
"date-and-time",
|
|
"os",
|
|
]
|
|
license = "BSD-2-Clause"
|
|
repository = "https://github.com/jedisct1/rust-coarsetime"
|
|
|
|
[features]
|
|
wasi-abi2 = ["dep:wasi-abi2"]
|
|
|
|
[lib]
|
|
name = "coarsetime"
|
|
path = "src/lib.rs"
|
|
|
|
[[bench]]
|
|
name = "benchmark"
|
|
path = "benches/benchmark.rs"
|
|
harness = false
|
|
|
|
[dev-dependencies.benchmark-simple]
|
|
version = "0.1.10"
|
|
|
|
[dependencies.portable-atomic]
|
|
version = "1.6"
|
|
|
|
[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies.wasm-bindgen]
|
|
version = "0.2"
|
|
|
|
[target.'cfg(any(target_os = "wasix", target_os = "wasi"))'.dependencies.wasix]
|
|
version = "0.13"
|
|
|
|
[target.'cfg(not(any(target_os = "wasix", target_os = "wasi")))'.dependencies.libc]
|
|
version = "0.2"
|
|
|
|
[target.'cfg(target_os = "wasi")'.dependencies.wasi-abi2]
|
|
version = "0.14.7"
|
|
optional = true
|
|
package = "wasi"
|
|
|
|
[profile.bench]
|
|
codegen-units = 1
|
|
|
|
[profile.dev]
|
|
overflow-checks = true
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
incremental = false
|