diff --git a/README.md b/README.md index 1ce076e..f56866d 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ -# ktls - -[![Crates.io](https://img.shields.io/crates/v/ktls)](https://crates.io/crates/ktls) [![test pipeline](https://github.com/hapsoc/ktls/actions/workflows/test.yml/badge.svg)](https://github.com/hapsoc/ktls/actions/workflows/test.yml?query=branch%3Amain) [![Coverage Status (codecov.io)](https://codecov.io/gh/hapsoc/ktls/branch/main/graph/badge.svg)](https://codecov.io/gh/hapsoc/ktls/) +[![license: MIT/Apache-2.0](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](LICENSE-MIT) + +# ktls + +This repository hosts both: -Configures kTLS ([kernel TLS -offload](https://www.kernel.org/doc/html/latest/networking/tls-offload.html)) -for any type that implements `AsRawFd`, given a rustls `ServerConnection`. + * [ktls](./ktls): higher-level, safe wrappers over kTLS + * [ktls-sys](./ktls-sys): the raw system interface for kTLS on Linux ## License diff --git a/ktls-sys/Cargo.toml b/ktls-sys/Cargo.toml index ce9cda3..5c19300 100644 --- a/ktls-sys/Cargo.toml +++ b/ktls-sys/Cargo.toml @@ -3,11 +3,13 @@ name = "ktls-sys" version = "1.0.1" edition = "2021" license = "MIT OR Apache-2.0" -repository = "https://github.com/bearcove/ktls-sys" +repository = "https://github.com/rustls/ktls-sys" documentation = "https://docs.rs/ktls-sys" +authors = ["Amos Wenger "] readme = "README.md" description = """ FFI bindings for `linux/tls.h` """ +rust-version = "1.75" [dependencies] diff --git a/ktls-sys/README.md b/ktls-sys/README.md index a756c05..2cee2cd 100644 --- a/ktls-sys/README.md +++ b/ktls-sys/README.md @@ -1,3 +1,8 @@ +[![test pipeline](https://github.com/hapsoc/ktls/actions/workflows/test.yml/badge.svg)](https://github.com/hapsoc/ktls/actions/workflows/test.yml?query=branch%3Amain) +[![Coverage Status (codecov.io)](https://codecov.io/gh/hapsoc/ktls/branch/main/graph/badge.svg)](https://codecov.io/gh/hapsoc/ktls/) +[![Crates.io](https://img.shields.io/crates/v/ktls-sys)](https://crates.io/crates/ktls-sys) +[![license: MIT/Apache-2.0](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](LICENSE-MIT) + # ktls-sys `linux/tls.h` bindings, for TLS kernel offload. @@ -6,11 +11,6 @@ Generated with `bindgen tls.h -o src/bindings.rs` See for a higher-level / safer interface. -## Status - -[![test pipeline](https://github.com/bearcove/ktls-sys/actions/workflows/test.yml/badge.svg)](https://github.com/bearcove/ktls-sys/actions/workflows/test.yml?query=branch%3Amain) -[![Coverage Status (codecov.io)](https://codecov.io/gh/bearcove/ktls-sys/branch/main/graph/badge.svg)](https://codecov.io/gh/bearcove/ktls-sys/) - ## License This project is primarily distributed under the terms of both the MIT license diff --git a/CHANGELOG.md b/ktls/CHANGELOG.md similarity index 100% rename from CHANGELOG.md rename to ktls/CHANGELOG.md diff --git a/ktls/README.md b/ktls/README.md new file mode 100644 index 0000000..59c8897 --- /dev/null +++ b/ktls/README.md @@ -0,0 +1,17 @@ +[![test pipeline](https://github.com/hapsoc/ktls/actions/workflows/test.yml/badge.svg)](https://github.com/hapsoc/ktls/actions/workflows/test.yml?query=branch%3Amain) +[![Coverage Status (codecov.io)](https://codecov.io/gh/hapsoc/ktls/branch/main/graph/badge.svg)](https://codecov.io/gh/hapsoc/ktls/) +[![Crates.io](https://img.shields.io/crates/v/ktls)](https://crates.io/crates/ktls) +[![license: MIT/Apache-2.0](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](LICENSE-MIT) + +# ktls + +Configures kTLS ([kernel TLS +offload](https://www.kernel.org/doc/html/latest/networking/tls-offload.html)) +for any type that implements `AsRawFd`, given a rustls `ServerConnection`. + +## License + +This project is primarily distributed under the terms of both the MIT license +and the Apache License (Version 2.0). + +See [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT) for details. diff --git a/rust-toolchain.toml b/rust-toolchain.toml index ef1da07..b8f0c4c 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.80.1" +channel = "1.75.0" components = ["llvm-tools", "clippy", "rust-src"]