-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from constellation-rs/docopt-fix
Fix docopt syntax
- Loading branch information
Showing
15 changed files
with
125 additions
and
36 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
[package] | ||
name = "constellation-rs" | ||
version = "0.1.8" | ||
version = "0.1.9" | ||
license = "Apache-2.0" | ||
authors = ["Alec Mocatta <[email protected]>"] | ||
categories = ["development-tools","network-programming","concurrency","asynchronous","command-line-utilities"] | ||
|
@@ -12,7 +12,7 @@ Constellation is a framework for Rust (nightly) that aides in the writing, debug | |
""" | ||
repository = "https://github.com/alecmocatta/constellation" | ||
homepage = "https://github.com/alecmocatta/constellation" | ||
documentation = "https://docs.rs/constellation-rs/0.1.8" | ||
documentation = "https://docs.rs/constellation-rs/0.1.9" | ||
readme = "README.md" | ||
links = "constellation" | ||
build = "build.rs" | ||
|
@@ -32,7 +32,7 @@ no_alloc = ["constellation-internal/no_alloc"] | |
kubernetes = ["distribute_binaries", "k8s-openapi", "kube", "openssl", "tokio"] | ||
|
||
[dependencies] | ||
constellation-internal = { path = "constellation-internal", version = "=0.1.8" } | ||
constellation-internal = { path = "constellation-internal", version = "=0.1.9" } | ||
atty = "0.2" | ||
backtrace = "0.3" | ||
bincode = "1.2" | ||
|
@@ -41,7 +41,7 @@ docopt = "1.0" | |
either = "1.5" | ||
futures = "0.3" | ||
k8s-openapi = { version = "0.6", default-features = false, features = ["v1_15"], optional = true } | ||
kube = { version = "0.22", features = ["openapi"], optional = true } | ||
kube = { version = "0.23", features = ["openapi"], optional = true } | ||
log = "0.4" | ||
notifier = { version = "0.1", features = ["tcp_typed"] } | ||
once_cell = "1.0" | ||
|
@@ -54,7 +54,7 @@ serde_traitobject = "0.2" | |
serde_json = "1.0" | ||
serde_pipe = "0.1" | ||
tcp_typed = "0.1" | ||
tokio = { version = "0.2.0-alpha.6", optional = true } | ||
tokio = { version = "0.2", optional = true } | ||
toml = "0.5" | ||
|
||
# dependency of kube; ensure it's vendored to simplify cross-compilation | ||
|
@@ -127,6 +127,10 @@ name = "sender-self" | |
test = false | ||
harness = false | ||
[[test]] | ||
name = "spawn-env" | ||
test = false | ||
harness = false | ||
[[test]] | ||
name = "spawn-multiple-futures-send-recv-stream" | ||
test = false | ||
harness = false | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "constellation-internal" | ||
version = "0.1.8" | ||
version = "0.1.9" | ||
license = "Apache-2.0" | ||
authors = ["Alec Mocatta <[email protected]>"] | ||
categories = ["development-tools","network-programming","concurrency","asynchronous"] | ||
|
@@ -10,7 +10,7 @@ Common components for the `constellation` framework. | |
""" | ||
repository = "https://github.com/alecmocatta/constellation" | ||
homepage = "https://github.com/alecmocatta/constellation" | ||
documentation = "https://docs.rs/constellation-internal/0.1.8" | ||
documentation = "https://docs.rs/constellation-internal/0.1.9" | ||
edition = "2018" | ||
|
||
[features] | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
//= { | ||
//= "output": { | ||
//= "2": [ | ||
//= "", | ||
//= true | ||
//= ], | ||
//= "1": [ | ||
//= "", | ||
//= true | ||
//= ] | ||
//= }, | ||
//= "children": [ | ||
//= { | ||
//= "output": { | ||
//= "2": [ | ||
//= "", | ||
//= true | ||
//= ], | ||
//= "1": [ | ||
//= "", | ||
//= true | ||
//= ] | ||
//= }, | ||
//= "children": [], | ||
//= "exit": "Success" | ||
//= }, | ||
//= { | ||
//= "output": { | ||
//= "2": [ | ||
//= "", | ||
//= true | ||
//= ], | ||
//= "1": [ | ||
//= "", | ||
//= true | ||
//= ] | ||
//= }, | ||
//= "children": [], | ||
//= "exit": "Success" | ||
//= } | ||
//= ], | ||
//= "exit": "Success" | ||
//= } | ||
|
||
#![allow(clippy::unused_unit)] // for FnOnce! | ||
|
||
use constellation::*; | ||
use serde_closure::FnOnce; | ||
use std::env; | ||
|
||
fn main() { | ||
init(Resources { | ||
mem: 20 * 1024 * 1024, | ||
..Resources::default() | ||
}); | ||
let env = ( | ||
env::args().collect::<Vec<_>>(), | ||
env::vars() | ||
.filter(|&(ref key, _)| key != "CONSTELLATION" && key != "CONSTELLATION_RESOURCES") | ||
.collect::<Vec<_>>(), | ||
); | ||
for _ in 0..2 { | ||
let env = env.clone(); | ||
let _pid = spawn( | ||
Resources { | ||
mem: 20 * 1024 * 1024, | ||
..Resources::default() | ||
}, | ||
FnOnce!(|_parent| { | ||
let env2 = ( | ||
env::args().collect::<Vec<_>>(), | ||
env::vars() | ||
.filter(|&(ref key, _)| { | ||
key != "CONSTELLATION" && key != "CONSTELLATION_RESOURCES" | ||
}) | ||
.collect::<Vec<_>>(), | ||
); | ||
assert_eq!(env, env2); | ||
}), | ||
) | ||
.block() | ||
.expect("spawn() failed to allocate process"); | ||
} | ||
} |
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