Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update version #168

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ signal-hook = "0.3.17"
log.workspace = true
clap.workspace = true
serde.workspace = true
atm0s-sdn = { path = "../packages/runner", version = "0.1.10", features = ["vpn"] }
tokio = { version = "1.36.0", features = ["full"] }
atm0s-sdn = { path = "../packages/runner", version = "0.2.0", features = ["vpn"] }
tokio = { version = "1", features = ["full"] }
poem = { version = "2.0", features = ["embed", "static-files", "websocket"] }
rust-embed = { version = "8.2", optional = true }

futures-util = "0.3.30"
tracing-subscriber = "0.3.18"
serde_json = "1.0.114"
futures-util = "0.3"
tracing-subscriber = "0.3"
serde_json = "1.0"

[features]
default = ["embed"]
embed = ["rust-embed"]
embed = ["rust-embed"]
12 changes: 6 additions & 6 deletions bin/deployments/systemd/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for server in "${!servers[@]}"; do
if [[ $server == *"_node_id" ]] || [[ $server == *"_name" ]] || [[ $server == *"_public" ]] || [[ $server == *"_ssh_port" ]] || [[ $server == *"_seeds" ]] || [[ $server == *"_collector" ]]; then
continue
fi

# Retrieve the node_id and web_addr for the current server
node_id="${servers["$server"_node_id]}"
ssh_port="${servers["$server"_ssh_port]:-22}"
Expand All @@ -34,20 +34,20 @@ for server in "${!servers[@]}"; do
fi

echo "/opt/atm0s-sdn-node" >> /tmp/atm0s-sdn-node-sh

echo "Connecting to $server"

# Upload the file
ssh -p $ssh_port ${servers[$server]} "rm -f ${servers[$server]}:/opt/atm0s-sdn-node"
ssh -p $ssh_port "${servers[$server]}" "rm -f ${servers[$server]}:/opt/atm0s-sdn-node"
ssh -p $ssh_port "${servers[$server]}" "rm -f ${servers[$server]}:/etc/systemd/system/atm0s-sdn-node.service"
ssh -p $ssh_port "${servers[$server]}" "rm -f ${servers[$server]}:/opt/atm0s-sdn-node.sh"
scp -P $ssh_port "../../../target/release/atm0s-sdn-standalone" "${servers[$server]}:/opt/atm0s-sdn-node"
scp -P $ssh_port "./atm0s-sdn-node.service" "${servers[$server]}:/etc/systemd/system/atm0s-sdn-node.service"
scp -P $ssh_port "/tmp/atm0s-sdn-node-sh" "${servers[$server]}:/opt/atm0s-sdn-node.sh"

# Execute the command on the server
ssh -p $ssh_port "${servers[$server]}" "systemctl daemon-reload"
ssh -p $ssh_port "${servers[$server]}" "systemctl enable atm0s-sdn-node"
ssh -p $ssh_port "${servers[$server]}" "systemctl start atm0s-sdn-node"
ssh -p $ssh_port "${servers[$server]}" "systemctl status atm0s-sdn-node"
done
done
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cargo-fuzz = true

[dependencies]
libfuzzer-sys = "0.4"
atm0s-sdn-network = { path = "../packages/network", version = "0.3.1", features = ["fuzz"] }
atm0s-sdn-network = { path = "../packages/network", version = "0.4.0", features = ["fuzz"] }

[[bin]]
name = "network_control_pkt"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/identity/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "atm0s-sdn-identity"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
description = "A library for generating and verifying identities for atm0s-sdn"
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions packages/core/router/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "atm0s-sdn-router"
version = "0.1.4"
version = "0.2.0"
edition = "2021"
description = "Router interface for atm0s-sdn"
license = "MIT"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
atm0s-sdn-identity = { path = "../identity", version = "0.2.0" }
atm0s-sdn-utils = { path = "../utils", version = "0.1.1" }
atm0s-sdn-identity = { path = "../identity", version = "0.3.0" }
atm0s-sdn-utils = { path = "../utils", version = "0.2.0" }
serde = { workspace = true }
log = { workspace = true }
mockall = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion packages/core/utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "atm0s-sdn-utils"
version = "0.1.1"
version = "0.2.0"
edition = "2021"
description = "A collection of utilities for atm0s-sdn"
license = "MIT"
Expand Down
9 changes: 4 additions & 5 deletions packages/network/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[package]
name = "atm0s-sdn-network"
version = "0.3.1"
version = "0.4.0"
edition = "2021"
description = "Main network-plane of atm0s-sdn"
license = "MIT"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
atm0s-sdn-utils = { path = "../core/utils", version = "0.1.1" }
atm0s-sdn-identity = { path = "../core/identity", version = "0.2.0" }
atm0s-sdn-router = { path = "../core/router", version = "0.1.4" }
atm0s-sdn-utils = { path = "../core/utils", version = "0.2.0" }
atm0s-sdn-identity = { path = "../core/identity", version = "0.3.0" }
atm0s-sdn-router = { path = "../core/router", version = "0.2.0" }
sans-io-runtime = { workspace = true, default-features = false }
rand = { workspace = true }
mockall = { workspace = true }
Expand All @@ -31,7 +31,6 @@ derivative = "2.2"

[dev-dependencies]
env_logger = { workspace = true }
atm0s-sdn-router = { path = "../core/router", version = "0.1.4" }

[features]
default = ["fuzz"]
Expand Down
8 changes: 4 additions & 4 deletions packages/runner/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "atm0s-sdn"
version = "0.1.10"
version = "0.2.0"
edition = "2021"
repository = "https://github.com/8xFF/atm0s-sdn"
description = "Decentralized Ultra-Low-Latency Software Defined Network"
Expand All @@ -11,9 +11,9 @@ license = "MIT"
[dependencies]
thiserror = { workspace = true }
sans-io-runtime = { workspace = true, features = ["poll-backend", "polling-backend", "udp"] }
atm0s-sdn-identity = { path = "../core/identity", version = "0.2.0" }
atm0s-sdn-router = { path = "../core/router", version = "0.1.4" }
atm0s-sdn-network = { path = "../network", version = "0.3.1" }
atm0s-sdn-identity = { path = "../core/identity", version = "0.3.0" }
atm0s-sdn-router = { path = "../core/router", version = "0.2.0" }
atm0s-sdn-network = { path = "../network", version = "0.4.0" }

convert-enum = { workspace = true }
num_enum = { workspace = true }
Expand Down
Loading