Skip to content

Commit

Permalink
chore: workspace organizing (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma233 authored Nov 15, 2023
1 parent 17159f4 commit b2cccca
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 111 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 16 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
[workspace]
resolver = "2"
members = ["core", "transport", "node", "rpc", "derive"]

resolver = "2"
[workspace.package]
version = "0.3.4"
edition = "2021"
license = "GPL-3.0"
authors = ["RND <[email protected]>"]
repository = "https://github.com/RingsNetwork/rings-node"

[workspace.dependencies]
js-sys = { version = "0.3.64" }
rings-core = { version = "0.3.4", path = "core", default-features = false }
rings-derive = { version = "0.3.4", path = "derive", default-features = false }
rings-rpc = { version = "0.3.4", path = "rpc", default-features = false }
rings-transport = { version = "0.3.4", path = "transport" }
serde-wasm-bindgen = { version = "0.6.1" }
wasm-bindgen = { version = "0.2.87" }
wasm-bindgen-futures = { version = "0.4.37" }
wasm-bindgen-macro-support = { version = "0.2.84" }
js-sys = "0.3.64"
rings-core = { path = "core", default-features = false }
rings-derive = { path = "derive", default-features = false }
rings-rpc = { path = "rpc", default-features = false }
rings-transport = { path = "transport" }
serde-wasm-bindgen = "0.6.1"
wasm-bindgen = "0.2.87"
wasm-bindgen-futures = "0.4.37"
wasm-bindgen-macro-support = "0.2.84"
10 changes: 5 additions & 5 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "rings-core"
version = "0.3.4"
edition = "2021"
authors = ["RND <[email protected]>"]
description = "Chord DHT implementation with ICE"
repository = "https://github.com/RingsNetwork/rings-node"
license = "GPL-3.0"
readme = "README.md"
keywords = ["Chord", "DHT", "Web3", "P2P", "WASM"]
categories = ["network-programming", "cryptography", "wasm"]
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true

[features]
# Feature "experimental" is used to mark an implementation as experimental, which means that:
Expand Down
10 changes: 5 additions & 5 deletions derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "rings-derive"
version = "0.3.4"
edition = "2021"
authors = ["RND <[email protected]>"]
repository = "https://github.com/RingsNetwork/rings-node"
license = "GPL-3.0"
description = "Helper macros for rings node implementation."
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true

[lib]
proc-macro = true
Expand Down
10 changes: 5 additions & 5 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[package]
name = "rings-node"
version = "0.3.4"
edition = "2021"
default-run = "rings"
authors = ["RND <[email protected]>"]
description = """
Rings is a structured peer-to-peer network implementation using WebRTC, Chord algorithm, and full WebAssembly (WASM) support.
"""
repository = "https://github.com/RingsNetwork/rings-node"
license = "GPL-3.0"
readme = "README.md"
keywords = ["Chord", "DHT", "Web3", "P2P", "WASM"]
categories = ["network-programming", "cryptography", "wasm"]
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
71 changes: 0 additions & 71 deletions node/src/native/endpoint/is_turn.rs

This file was deleted.

10 changes: 5 additions & 5 deletions rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[package]
name = "rings-rpc"
version = "0.3.4"
edition = "2021"
authors = ["RND <[email protected]>"]
description = """
Rings is a structured peer-to-peer network implementation using WebRTC, Chord algorithm, and full WebAssembly (WASM) support.
"""
repository = "https://github.com/RingsNetwork/rings-node"
license = "GPL-3.0"
readme = "README.md"
keywords = ["Chord", "DHT", "Web3", "P2P", "WASM"]
categories = ["network-programming", "cryptography", "wasm"]
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
10 changes: 5 additions & 5 deletions transport/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "rings-transport"
version = "0.3.4"
edition = "2021"
authors = ["RND <[email protected]>"]
description = "Transport layer implementation for Rings Core"
repository = "https://github.com/RingsNetwork/rings-node"
readme = "README.md"
license = "GPL-3.0"
categories = ["network-programming", "cryptography", "wasm", "webrtc"]
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true

[features]
# Include nothing by default
Expand Down

0 comments on commit b2cccca

Please sign in to comment.