-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
82 lines (69 loc) · 2.05 KB
/
Cargo.toml
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
# SPDX-FileCopyrightText: 2023 Shun Sakai
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
[package]
name = "nt-time"
version = "0.10.3"
authors = ["Shun Sakai <sorairolake@protonmail.ch>"]
edition = "2021"
rust-version = "1.67.0"
description = "A Windows file time library"
documentation = "https://docs.rs/nt-time"
readme = "README.md"
repository = "https://github.com/sorairolake/nt-time"
license = "Apache-2.0 OR MIT"
keywords = ["date", "time", "windows"]
categories = ["date-and-time", "no-std"]
include = ["/LICENSES", "/README.md", "/src"]
[package.metadata.docs.rs]
all-features = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[example]]
name = "date"
path = "examples/date.rs"
required-features = ["std"]
[[example]]
name = "dos2ft"
path = "examples/dos2ft.rs"
required-features = ["std"]
[[example]]
name = "ft2dos"
path = "examples/ft2dos.rs"
required-features = ["std"]
[[example]]
name = "ft2unix"
path = "examples/ft2unix.rs"
required-features = ["std"]
[[example]]
name = "unix2ft"
path = "examples/unix2ft.rs"
required-features = ["std"]
[dependencies]
chrono = { version = "0.4.38", default-features = false, optional = true }
rand = { version = "0.8.5", default-features = false, optional = true }
serde = { version = "1.0.214", default-features = false, features = ["derive"], optional = true }
time = { version = "0.3.36", default-features = false, features = ["macros"] }
[dev-dependencies]
anyhow = "1.0.93"
clap = { version = "4.5.20", features = ["derive"] }
proptest = "1.5.0"
proptest-derive = "0.5.0"
serde_json = "1.0.132"
serde_test = "1.0.177"
test-strategy = "0.4.0"
[features]
default = ["std"]
chrono = ["dep:chrono"]
rand = ["dep:rand"]
serde = ["dep:serde"]
std = ["chrono?/std", "rand?/std", "time/std"]
large-dates = ["time/large-dates"]
serde-human-readable = ["serde", "time/serde-human-readable"]
[lints.clippy]
cargo = "warn"
nursery = "warn"
pedantic = "warn"
[lints.rust]
missing_debug_implementations = "deny"
rust_2018_idioms = { level = "warn", priority = -1 }
unsafe_code = "forbid"