Skip to content

Commit

Permalink
Add copyright files, generalize toml files
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed Nov 21, 2023
1 parent 921a193 commit 3c5f965
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 36 deletions.
40 changes: 40 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,43 @@ exclude = [
"statime-stm32"
]
resolver = "2"

[workspace.package]
version = "0.1.0"
edition = "2021"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/pendulum-project/statime"
homepage = "https://github.com/pendulum-project/statime"
publish = true
authors = [
"David Venhoek <[email protected]>",
"Folkert de Vries <[email protected]>",
"Dion Dokter <[email protected]>",
"Ruben Nijveld <[email protected]>",
"David Venhoek <[email protected]>",
"Bram Bruines <[email protected]>",
"Rick van der Wal <[email protected]>"
]
rust-version = "1.67" # MSRV

[workspace.dependencies]
arrayvec = { version = "0.7.4", default-features = false }
clap = { version = "4.4.7", features = ["derive"] }
fern = { version = "0.6.2", features = ["colored"] }
hex = "0.4.3"
libc = { version = "0.2.150", features = ["extra_traits"] }
log = { version = "0.4.20", default-features = false }
pin-project-lite = "0.2.13"
toml = ">=0.5.0, <0.9.0"
tokio = "1.33"
rand = { version = "0.8.5", default-features = false }
serde = { version = "1.0.192", features = ["derive"] }
az = "1.2.1"
fixed = "1.24"
libm = "0.2.8"
atomic_refcell = "0.1.13"


# our own crates used as dependencies, same version as the workspace version
# NOTE: keep this part at the bottom of the file, do not change this line
statime = { version = "0.1.0", path = "./statime" }
1 change: 1 addition & 0 deletions statime-linux/COPYING
37 changes: 23 additions & 14 deletions statime-linux/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
[package]
name = "statime-linux"
version = "0.1.0"
edition = "2021"
readme = "README.md"
description = "Linux daemon for the Statime Precision Time Protocol implementation"
authors.workspace = true
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
publish.workspace = true
rust-version.workspace = true

[[bin]]
name = "statime"
path = "src/main.rs"

[dependencies]
arrayvec = { version = "0.7.4", default-features = false }
clap = { version = "4.4.7", features = ["derive"] }
fern = { version = "0.6.2", features = ["colored"] }
hex = "0.4.3"
libc = { version = "0.2.150", features = ["extra_traits"] }
log = "0.4.20"
statime = { path = "../statime" }
pin-project-lite = "0.2.13"
toml = ">=0.5.0, <0.9.0"
tokio = { version = "1.33", features = ["net", "rt-multi-thread", "time", "macros", "sync"] }
rand = { version = "0.8.5", default-features = false, features = ["std", "std_rng"] }
serde = { version = "1.0.192", features = ["derive"] }
statime.workspace = true

arrayvec.workspace = true
clap.workspace = true
fern.workspace = true
hex.workspace = true
libc.workspace = true
log = { workspace = true, default-features = true }
pin-project-lite.workspace = true
toml.workspace = true
tokio = { workspace = true, features = ["net", "rt-multi-thread", "time", "macros", "sync"] }
rand = { workspace = true, default-features = false, features = ["std", "std_rng"] }
serde.workspace = true

clock-steering = { git = "https://github.com/pendulum-project/clock-steering.git", rev = "716a540" }
timestamped-socket = { git = "https://github.com/pendulum-project/timestamped-socket.git", rev = "d0e4ed7", features = ["serde"] }
Expand Down
1 change: 1 addition & 0 deletions statime-linux/LICENSE-APACHE
1 change: 1 addition & 0 deletions statime-linux/LICENSE-MIT
1 change: 1 addition & 0 deletions statime-linux/README.md
1 change: 1 addition & 0 deletions statime/COPYING
39 changes: 17 additions & 22 deletions statime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
[package]
name = "statime"
version = "0.1.0"
authors = [
"Dion Dokter <[email protected]>",
"Ruben Nijveld <[email protected]>",
"David Venhoek <[email protected]>",
"Bram Bruines <[email protected]>",
"Rick van der Wal <[email protected]>"
]
license = "MIT OR Apache-2.0"
edition = "2021"
description = "Pure rust implementation of a ptp ordinary clock"
homepage = "https://github.com/tweedegolf/statime"
repository = "https://github.com/tweedegolf/statime"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
readme = "README.md"
description = "Precision Time Protocol implementation library for embedded and desktops"
authors.workspace = true
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
publish.workspace = true
rust-version.workspace = true

[features]
default = ["std"]
std = []
fuzz = ["std"]

[dependencies]
arrayvec = { version = "0.7.4", default-features = false }
az = "1.2.1"
fixed = "1.24"
libm = "0.2.8"
log = { version = "0.4.20", default-features = false }
rand = { version = "0.8.5", default-features = false }
atomic_refcell = "0.1.13"
arrayvec.workspace = true
az.workspace = true
fixed.workspace = true
libm.workspace = true
log = { workspace = true, default-features = false}
rand = { workspace = true, default-features = false }
atomic_refcell.workspace = true
1 change: 1 addition & 0 deletions statime/LICENSE-APACHE
1 change: 1 addition & 0 deletions statime/LICENSE-MIT
1 change: 1 addition & 0 deletions statime/README.md

0 comments on commit 3c5f965

Please sign in to comment.