diff --git a/Cargo.toml b/Cargo.toml index 531ed5bd6..d6437e1d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 ", + "Folkert de Vries ", + "Dion Dokter ", + "Ruben Nijveld ", + "David Venhoek ", + "Bram Bruines ", + "Rick van der Wal " +] +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" } diff --git a/statime-linux/COPYING b/statime-linux/COPYING new file mode 120000 index 000000000..012065c85 --- /dev/null +++ b/statime-linux/COPYING @@ -0,0 +1 @@ +../COPYING \ No newline at end of file diff --git a/statime-linux/Cargo.toml b/statime-linux/Cargo.toml index 373842318..808535bf2 100644 --- a/statime-linux/Cargo.toml +++ b/statime-linux/Cargo.toml @@ -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"] } diff --git a/statime-linux/LICENSE-APACHE b/statime-linux/LICENSE-APACHE new file mode 120000 index 000000000..965b606f3 --- /dev/null +++ b/statime-linux/LICENSE-APACHE @@ -0,0 +1 @@ +../LICENSE-APACHE \ No newline at end of file diff --git a/statime-linux/LICENSE-MIT b/statime-linux/LICENSE-MIT new file mode 120000 index 000000000..76219eb72 --- /dev/null +++ b/statime-linux/LICENSE-MIT @@ -0,0 +1 @@ +../LICENSE-MIT \ No newline at end of file diff --git a/statime-linux/README.md b/statime-linux/README.md new file mode 120000 index 000000000..32d46ee88 --- /dev/null +++ b/statime-linux/README.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file diff --git a/statime/COPYING b/statime/COPYING new file mode 120000 index 000000000..012065c85 --- /dev/null +++ b/statime/COPYING @@ -0,0 +1 @@ +../COPYING \ No newline at end of file diff --git a/statime/Cargo.toml b/statime/Cargo.toml index 172096e13..69a5d6193 100644 --- a/statime/Cargo.toml +++ b/statime/Cargo.toml @@ -1,20 +1,15 @@ [package] name = "statime" -version = "0.1.0" -authors = [ - "Dion Dokter ", - "Ruben Nijveld ", - "David Venhoek ", - "Bram Bruines ", - "Rick van der Wal " -] -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"] @@ -22,10 +17,10 @@ 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 diff --git a/statime/LICENSE-APACHE b/statime/LICENSE-APACHE new file mode 120000 index 000000000..965b606f3 --- /dev/null +++ b/statime/LICENSE-APACHE @@ -0,0 +1 @@ +../LICENSE-APACHE \ No newline at end of file diff --git a/statime/LICENSE-MIT b/statime/LICENSE-MIT new file mode 120000 index 000000000..76219eb72 --- /dev/null +++ b/statime/LICENSE-MIT @@ -0,0 +1 @@ +../LICENSE-MIT \ No newline at end of file diff --git a/statime/README.md b/statime/README.md new file mode 120000 index 000000000..32d46ee88 --- /dev/null +++ b/statime/README.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file