Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async tls support #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

csyJoy
Copy link
Contributor

@csyJoy csyJoy commented Oct 9, 2024

This pr contains following things:

  1. rats-rs async support using tokio-rustls
  2. an async rats-rs echo server
  3. refactor crates features' structure to avoid features contention

1. Asynchronous tdx sgx quote generation phase via
`tokio::spawn_block`.
2. Propagate `async` to function that call or implicitly call
asynchronous interface.
3. add asynchronous test.
…refactor

1. add `rustls` module in transport module which use
`tokio-rustls` to support async IO by `tokio`
2. refactor current crates' features structure to avoid feature
contention
1. adjust the position of `#[maybe_async]` for test cases.
2. remove `example/*` from default-members in `Cargo.toml` which
will cause default `cargo build` fail.
3. use `-p` instead of `--bin` while building an example.
4. adding `base` feature in `rats-rs`, making it convenient to
re-add the basic features after disabling the default features.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant