From 81c7df1931eae2eeda7790f54c40ac057f9baf25 Mon Sep 17 00:00:00 2001 From: kbalt Date: Fri, 9 Feb 2024 19:09:49 +0100 Subject: [PATCH] chore: Move some package keys to workspace and update to edition 2021 --- Cargo.toml | 7 +++++++ crates/internal/Cargo.toml | 9 +++++---- crates/placeholder/Cargo.toml | 9 +++++---- crates/sdp-types/Cargo.toml | 9 +++++---- crates/sip-auth/Cargo.toml | 12 +++++------- crates/sip-core/Cargo.toml | 9 +++++---- crates/sip-types/Cargo.toml | 9 +++++---- crates/sip-ua/Cargo.toml | 9 +++++---- crates/stun-types/Cargo.toml | 9 +++++---- crates/stun/Cargo.toml | 9 +++++---- examples/Cargo.toml | 2 +- 11 files changed, 53 insertions(+), 40 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d09b0ab..6b1862d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,13 @@ [workspace] +resolver = "2" members = [ "crates/*", "examples", ] + +[workspace.package] +authors = ["kbalt"] +edition = "2021" +license = "MIT" +repository = "https://github.com/kbalt/ezk" diff --git a/crates/internal/Cargo.toml b/crates/internal/Cargo.toml index 56669df..b184e80 100644 --- a/crates/internal/Cargo.toml +++ b/crates/internal/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "ezk-internal" version = "0.1.0" -edition = "2018" -authors = ["Konstantin Baltruschat "] description = "ezk internal util" -repository = "https://github.com/kbalt/ezk" -license = "MIT" categories = [] keywords = [] readme = "README.md" +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true + [dependencies] nom = { version = "7", default-features = false, features = ["alloc"] } diff --git a/crates/placeholder/Cargo.toml b/crates/placeholder/Cargo.toml index 67b3d4b..b5e65f3 100644 --- a/crates/placeholder/Cargo.toml +++ b/crates/placeholder/Cargo.toml @@ -1,12 +1,13 @@ [package] name = "ezk" version = "0.0.0" -edition = "2018" -authors = ["Konstantin Baltruschat "] description = "placeholder for future crate" -repository = "https://github.com/kbalt/ezk" -license = "MIT" categories = [] keywords = [] +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true + [dependencies] diff --git a/crates/sdp-types/Cargo.toml b/crates/sdp-types/Cargo.toml index c42987d..c985b94 100644 --- a/crates/sdp-types/Cargo.toml +++ b/crates/sdp-types/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "ezk-sdp-types" version = "0.1.1" -edition = "2018" -authors = ["Konstantin Baltruschat "] description = "SDP types providing parsing & serialization" -repository = "https://github.com/kbalt/ezk" -license = "MIT" categories = ["network-programming", "multimedia"] keywords = ["sdp"] readme = "README.md" +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true + [dependencies] internal = { package = "ezk-internal", path = "../internal", version = "0.1" } diff --git a/crates/sip-auth/Cargo.toml b/crates/sip-auth/Cargo.toml index 985c6af..5a2aa1b 100644 --- a/crates/sip-auth/Cargo.toml +++ b/crates/sip-auth/Cargo.toml @@ -1,18 +1,16 @@ [package] name = "ezk-sip-auth" version = "0.1.1" -edition = "2018" -authors = [ - "Konstantin Baltruschat ", - "Mervs ", -] description = "RFC8769 compliant SIP authentication" -repository = "https://github.com/kbalt/ezk" -license = "MIT" categories = ["network-programming", "multimedia"] keywords = ["sip", "auth"] readme = "README.md" +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true + [dependencies] sip-types = { package = "ezk-sip-types", path = "../sip-types", version = "0.1" } diff --git a/crates/sip-core/Cargo.toml b/crates/sip-core/Cargo.toml index 35db1e7..466b1bd 100644 --- a/crates/sip-core/Cargo.toml +++ b/crates/sip-core/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "ezk-sip-core" version = "0.2.1" -edition = "2018" -authors = ["Konstantin Baltruschat "] description = "SIP core crate providing abstrations over transport and transactions" -repository = "https://github.com/kbalt/ezk" -license = "MIT" categories = ["network-programming", "multimedia"] keywords = ["sip"] readme = "README.md" +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true + [dependencies] internal = { package = "ezk-internal", path = "../internal", version = "0.1" } sip-types = { package = "ezk-sip-types", path = "../sip-types", version = "0.1" } diff --git a/crates/sip-types/Cargo.toml b/crates/sip-types/Cargo.toml index 6bd1c3d..3f5b776 100644 --- a/crates/sip-types/Cargo.toml +++ b/crates/sip-types/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "ezk-sip-types" version = "0.1.3" -edition = "2018" -authors = ["Konstantin Baltruschat "] description = "SIP types providing parsing & serialization" -repository = "https://github.com/kbalt/ezk" -license = "MIT" categories = ["network-programming", "multimedia"] keywords = ["sip"] readme = "README.md" +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true + [dependencies] internal = { package = "ezk-internal", path = "../internal", version = "0.1" } diff --git a/crates/sip-ua/Cargo.toml b/crates/sip-ua/Cargo.toml index 9d6abae..507e528 100644 --- a/crates/sip-ua/Cargo.toml +++ b/crates/sip-ua/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "ezk-sip-ua" version = "0.2.1" -edition = "2018" -authors = ["Konstantin Baltruschat "] description = "Low level SIP user agent utilities" -repository = "https://github.com/kbalt/ezk" -license = "MIT" categories = ["network-programming", "multimedia"] keywords = ["sip"] readme = "README.md" +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true + [dependencies] sip-types = { package = "ezk-sip-types", path = "../sip-types", version = "0.1" } sip-core = { package = "ezk-sip-core", path = "../sip-core", version = "0.2" } diff --git a/crates/stun-types/Cargo.toml b/crates/stun-types/Cargo.toml index 303c407..8c5965f 100644 --- a/crates/stun-types/Cargo.toml +++ b/crates/stun-types/Cargo.toml @@ -1,16 +1,17 @@ [package] name = "ezk-stun-types" version = "0.1.2" -edition = "2018" -authors = ["Konstantin Baltruschat "] description = "STUN/TURN message types" -repository = "https://github.com/kbalt/ezk" -license = "MIT" categories = ["network-programming"] keywords = ["stun", "turn"] readme = "README.md" +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true + [dependencies] byteorder = "1.4" rand = "0.8" diff --git a/crates/stun/Cargo.toml b/crates/stun/Cargo.toml index 5c0d825..1cd4179 100644 --- a/crates/stun/Cargo.toml +++ b/crates/stun/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "ezk-stun" version = "0.2.0" -edition = "2018" -authors = ["Konstantin Baltruschat "] description = "STUN endpoint for simple requests" -repository = "https://github.com/kbalt/ezk" -license = "MIT" categories = ["network-programming"] keywords = ["stun"] readme = "README.md" +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true + [dependencies] stun-types = { path = "../stun-types", package = "ezk-stun-types", version = "0.1.1" } diff --git a/examples/Cargo.toml b/examples/Cargo.toml index aa718fa..24528c1 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "examples" version = "0.0.0" -edition = "2018" +edition = "2021" publish = false [dev-dependencies]