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

Test & fix stated MSRV; prepare 0.1.1 #10

Merged
merged 5 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,22 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install MSRV toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.72"

- name: Check MSRV
run: cargo build --lib --all-features

lints:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ needed: just the Rust compiler. Compiles in less than one second.

## Status

Active development. Do not use. Currently external contributions
are not welcomed; please do not file issues or PRs.
This project is very new, so exercise due caution. At the moment
there is not a public API outside of the `rustls` `CryptoProvider` --
so you can use this for TLS, but not for other uses.

## Goals

Expand Down
13 changes: 13 additions & 0 deletions admin/coverage
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e

source <(cargo llvm-cov show-env --export-prefix "$@")
cargo llvm-cov clean --workspace

cargo build --locked --all-targets --all-features
cargo test --locked --all-features
env GRAVIOLA_CPU_DISABLE_sha=1 GRAVIOLA_CPU_DISABLE_bmi2=1 cargo test --locked --all-features
cargo run --example client https://jbp.io >/dev/null

cargo llvm-cov report "$@"
2 changes: 1 addition & 1 deletion graviola/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graviola"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
repository = "https://github.com/ctz/graviola/"
license = "Apache-2.0 OR ISC OR MIT-0"
Expand Down
1 change: 1 addition & 0 deletions graviola/src/low/generic/zeroise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT-0

use crate::low::zero_bytes;
use core::mem::{size_of, size_of_val};

/// Writes zeroes over the whole of the `v` slice.
pub(crate) fn zeroise<T: Zeroable>(v: &mut [T]) {
Expand Down
1 change: 1 addition & 0 deletions graviola/tests/zeroing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#![cfg(target_os = "linux")]

use core::mem::size_of;
use core::ops::Deref;
use core::pin::Pin;
use core::ptr;
Expand Down