-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
99 additions
and
130 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
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,5 +1,5 @@ | ||
[package] | ||
name = "smol-examples" | ||
name = "smol-demos" | ||
version = "0.0.0" | ||
authors = ["Stjepan Glavina <[email protected]>"] | ||
edition = "2018" | ||
|
@@ -8,116 +8,116 @@ publish = false | |
[target.'cfg(windows)'.dev-dependencies] | ||
uds_windows = "0.1.4" | ||
|
||
[target.'cfg(target_os = "linux")'.dev-dependencies] | ||
inotify = { version = "0.8.2", default-features = false } | ||
nix = "0.17.0" | ||
[target.'cfg(target_os = "linux")'.dependencies] | ||
inotify = { version = "0.8", default-features = false } | ||
nix = "0.17" | ||
timerfd = "1.1.1" | ||
|
||
[dev-dependencies] | ||
anyhow = "1.0.28" | ||
async-h1 = "1.1.2" | ||
async-native-tls = "0.3.3" | ||
async-std = "1.5.0" | ||
async-tungstenite = { version = "0.4.2", features = ["async-native-tls"] } | ||
base64 = "0.12.0" | ||
ctrlc = "3.1.4" | ||
futures = "0.3.4" | ||
http = "0.2.1" | ||
http-types = "1.2.0" | ||
hyper = { version = "0.13.5", default-features = false, features = ["stream"] } | ||
native-tls = "0.2.4" | ||
num_cpus = "1.13.0" | ||
piper = "0.1.1" | ||
reqwest = "0.10.4" | ||
scraper = "0.11.0" | ||
signal-hook = "0.1.13" | ||
[dependencies] | ||
anyhow = "1" | ||
async-h1 = "1" | ||
async-native-tls = "0.3" | ||
async-std = "1" | ||
async-tungstenite = { version = "0.4", features = ["async-native-tls"] } | ||
base64 = "0.12" | ||
ctrlc = "3" | ||
futures = "0.3" | ||
http = "0.2" | ||
http-types = "1" | ||
hyper = { version = "0.13", default-features = false, features = ["stream"] } | ||
native-tls = "0.2" | ||
num_cpus = "1" | ||
piper = "0.1" | ||
reqwest = "0.10" | ||
scraper = "0.11" | ||
signal-hook = "0.1" | ||
smol = { path = "../", features = ["tokio02"] } | ||
surf = { version = "2.0.0-alpha.1", default-features = false, features = ["h1-client"] } | ||
tempfile = "3.1.0" | ||
tokio = { version = "0.2.18", default-features = false } | ||
tungstenite = "0.10.1" | ||
url = "2.1.1" | ||
surf = { version = "2.0.0-alpha", default-features = false, features = ["h1-client"] } | ||
tempfile = "3" | ||
tokio = { version = "0.2", default-features = false } | ||
tungstenite = "0.10" | ||
url = "2" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "async-h1-client" | ||
path = "async-h1-client.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "async-h1-server" | ||
path = "async-h1-server.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "chat-client" | ||
path = "chat-client.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "chat-server" | ||
path = "chat-server.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "ctrl-c" | ||
path = "ctrl-c.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "hyper-client" | ||
path = "hyper-client.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "hyper-server" | ||
path = "hyper-server.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "linux-inotify" | ||
path = "linux-inotify.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "linux-timerfd" | ||
path = "linux-timerfd.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "other-runtimes" | ||
path = "other-runtimes.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "simple-client" | ||
path = "simple-client.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "simple-server" | ||
path = "simple-server.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "tcp-client" | ||
path = "tcp-client.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "tcp-server" | ||
path = "tcp-server.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "tls-client" | ||
path = "tls-client.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "tls-server" | ||
path = "tls-server.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "unix-signal" | ||
path = "unix-signal.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "web-crawler" | ||
path = "web-crawler.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "websocket-client" | ||
path = "websocket-client.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "websocket-server" | ||
path = "websocket-server.rs" | ||
|
||
[[example]] | ||
[[bin]] | ||
name = "windows-uds" | ||
path = "windows-uds.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## smol demos | ||
|
||
An example of running any of the demos: | ||
|
||
``` | ||
$ cargo run --bin ctrl-c | ||
``` | ||
|
||
If you've got a demo you'd like to see here, | ||
please feel free to open an issue or submit a PR! |
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
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
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
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.