Skip to content

Commit 63a6c54

Browse files
committed
Add more examples
1 parent 3fef815 commit 63a6c54

File tree

4 files changed

+350
-2
lines changed

4 files changed

+350
-2
lines changed

Cargo.lock

Lines changed: 244 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ thiserror = "1"
2828
tokio = { version = "1", default-features = false, features = ["time", "io-util"], optional = true }
2929

3030
[dev-dependencies]
31+
async-native-tls = { version = "0.5", default-features = false }
3132
env_logger = "^0.9"
3233
glob = "^0.3"
3334
criterion = "^0.3"
@@ -39,7 +40,17 @@ name = "send"
3940
path = "examples/send.rs"
4041
required-features = ["runtime-tokio"]
4142

43+
[[example]]
44+
name = "ssl-xoauth2"
45+
path = "examples/ssl-xoauth2.rs"
46+
required-features = ["runtime-tokio"]
47+
48+
[[example]]
49+
name = "starttls-xoauth2"
50+
path = "examples/starttls-xoauth2.rs"
51+
required-features = ["runtime-tokio"]
52+
4253
[features]
4354
default = ["runtime-tokio"]
44-
runtime-async-std = ["async-std"]
45-
runtime-tokio = ["tokio"]
55+
runtime-async-std = ["async-std", "async-native-tls/runtime-async-std"]
56+
runtime-tokio = ["tokio", "async-native-tls/runtime-tokio"]

0 commit comments

Comments
 (0)