forked from vpetrigo/sntpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
51 lines (43 loc) · 1.32 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
[package]
name = "sntpc"
version = "0.3.1"
description = "Library for making SNTP requests"
homepage = "https://github.com/vpetrigo/sntpc"
repository = "https://github.com/vpetrigo/sntpc"
documentation = "https://docs.rs/sntpc"
readme = "README.md"
categories = ["date-and-time", "no-std", "embedded"]
keywords = ["sntp", "ntp", "sntp-client", "ntp-client"]
license = "BSD-3-Clause"
authors = ["Vladimir Petrigo <[email protected]>"]
edition = "2018"
autoexamples = false
exclude = [
".github/*",
"CONTRIBUTING.md",
".*",
]
[features]
default = ["std"]
std = []
utils = ["std", "chrono/clock"]
[dependencies]
log = { version = "~0.4", optional = true }
chrono = { version = "~0.4", default-features = false, optional = true }
# requred till this https://github.com/rust-lang/rfcs/pull/2832 is not addressed
no-std-net = "~0.6"
[dev-dependencies]
simple_logger = { version = "~1.13" }
smoltcp = { version = "~0.7", default-features = false, features = ["phy-tap_interface", "socket-udp", "proto-ipv4"] }
clap = { version = "2.33", default-features = false }
[badges]
travis-ci = { repository = "vpetrigo/sntpc", branch = "master" }
[[example]]
name = "simple_request"
required-features = ["std"]
[[example]]
name = "timesync"
required-features = ["utils"]
[[example]]
name = "smoltcp_request"
required-features = ["std"]