diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index c2ad9b9ab..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: nickray diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 6cbcd3e39..000000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Docs - -on: - push: - branches: [main] - -jobs: - docs: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - - - name: Install build dependencies - run: > - sudo apt-get update -y -qq && - sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev - - - uses: fiam/arm-none-eabi-gcc@v1 - with: - release: "9-2020-q2" - - - name: Build Documentation - run: cargo doc --no-default-features && scripts/make-toplevel-index.sh - - - name: Deploy Docs - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./target/doc diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 000000000..d89106e13 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,23 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup + run: sudo apt install llvm libclang-dev + - name: Run tests + run: cargo test --verbose + diff --git a/Cargo.toml b/Cargo.toml index 7874196e4..4f652c62d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,6 +73,3 @@ apdu-dispatch = { git = "https://github.com/Nitrokey/apdu-dispatch", tag = "v0.1 littlefs2 = { git = "https://github.com/Nitrokey/littlefs2", tag = "v0.3.2-nitrokey-1" } trussed = { git = "https://github.com/Nitrokey/trussed", tag = "v0.1.0-nitrokey-4" } usbd-ctaphid = { git = "https://github.com/trussed-dev/usbd-ctaphid"} - -# unreleased -interchange = { git = "https://github.com/trussed-dev/interchange" } diff --git a/src/lib.rs b/src/lib.rs index 70f69a26a..63745fe9a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ pub use command::Command; mod credential; #[cfg(feature = "ctaphid")] mod ctaphid; -mod encrypted_container; +pub mod encrypted_container; mod oath; mod state;