-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This merges everything (the sans-io core library, the blocking IO layer, and the as-yet-unwritten Tokio-based IO layer) into a single crate. Feature flags are now used to enable/disable the different IO layers. `cargo install magic-wormhole` will still be used to install the executable tool. Closes #28
- Loading branch information
Showing
40 changed files
with
397 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,49 @@ | ||
[workspace] | ||
members = [ | ||
"core", | ||
# "io/tokio", | ||
"io/blocking", | ||
"cli", | ||
] | ||
[package] | ||
name = "magic-wormhole" | ||
version = "0.0.1" | ||
authors = ["Brian Warner <warner@lothar.com>"] | ||
|
||
[badges] | ||
travis-ci = { repository = "warner/magic-wormhole.rs" } | ||
|
||
[dependencies] | ||
serde = "1.0" | ||
serde_json = "1.0" | ||
serde_derive = "1.0" | ||
sodiumoxide = "0.0.16" | ||
spake2 = "0.1.0" | ||
sha2 = "0.8" | ||
hkdf = "0.7.0" | ||
hex = "0.3" | ||
rand = "0.5" | ||
rustc-serialize = "0.3" | ||
regex = "1.0" | ||
|
||
# for "io_blocking" feature | ||
ws = { version = "0.7.*", optional = true } | ||
url = { version = "1.7", optional = true } | ||
|
||
# for "io_tokio" feature | ||
websocket = { version = "0.20", optional = true } | ||
futures = { version = "0.1", optional = true } | ||
tokio-core = { version = "0.1", optional = true } | ||
|
||
[dev-dependencies] | ||
ws = "0.7" | ||
url = "1.7" | ||
rustyline = "2.0" | ||
parking_lot = {version = "0.6", features = ["deadlock_detection"]} | ||
hex = "0.3" | ||
|
||
[features] | ||
default = ["io-blocking", "io-tokio"] | ||
io-blocking = ["ws", "url"] | ||
io-tokio = ["websocket", "futures", "tokio-core"] | ||
|
||
[[bin]] | ||
name = "wormhole" | ||
path = "src/bin/main.rs" | ||
required-features = ["io-blocking"] | ||
|
||
[profile.release] | ||
overflow-checks = true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
io/blocking/examples/receive.rs → examples/receive-blocking.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.