-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCargo.toml
56 lines (53 loc) · 1.7 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
#
# Copyright (c) 2017, 2020 ADLINK Technology Inc.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
[package]
name = "uhlc"
version = "0.8.0"
description = """
A Unique Hybrid Logical Clock for Rust.
"""
repository = "https://github.com/atolab/uhlc-rs"
homepage = "https://crates.io/crates/uhlc"
documentation = "https://atolab.github.io/uhlc-rs/"
readme = "README.md"
license = "EPL-2.0 OR Apache-2.0"
keywords = ["hlc", "clock", "timestamp"]
categories = ["date-and-time"]
authors = ["Julien Enoch <[email protected]>"]
edition = "2018"
[features]
default = ["std"]
std = ["humantime", "lazy_static", "log", "serde/std", "rand/std"]
defmt = ["dep:defmt"] # Enables defmt for logging in no_std
[dependencies]
defmt = { version = "0.3.2", features = [
"alloc",
], optional = true } # Replaces log in no_std
humantime = { version = "2.0", optional = true }
lazy_static = { version = "1.4.0", optional = true }
log = { version = "0.4", optional = true } # Used only in std
rand = { version = "0.8.5", default-features = false, features = [
"alloc",
"getrandom",
] }
serde = { version = "1.0", default-features = false, features = [
"alloc",
"derive",
] }
spin = { version = "0.9.8", default-features = false, features = [
"mutex",
"spin_mutex",
] } # No_std alternative for std::sync::Mutex
[dev-dependencies]
async-std = "1.6"
futures = "0.3"
regex = "1"
rand = "0.8"