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

fix rust stable #24

Merged
merged 1 commit into from
Jan 20, 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
52 changes: 52 additions & 0 deletions .github/workflows/linux-tests-nightly-rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Linux Tests On Rust Nightly
on: [push]

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on:
- ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true

- uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features

- name: Install dependencies
run: |
pip install setuptools wheel

- name: Build cryptatools
run: cargo build --all

- name: Install cryptatools clis
run: cargo install --path ./cryptatools-cli

- name: Run tests
run: |
cargo test --all

- name: Generate documentation
run: |
cargo doc --package cryptatools-core --workspace --no-deps

- name: Build and install Python Bindings
run: |
python3 ./cryptatools-core/setup.py bdist_wheel --verbose ;
pip3 install ./dist/* --force-reinstall ;

- name: Test python bindings
run: |
python3 ./cryptatools-core/binding-testing/testing.py ;
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
override: true

- uses: actions-rs/cargo@v1
Expand Down
4 changes: 0 additions & 4 deletions cryptatools-core/src/utils/alphabets.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use itertools::Itertools;
use bimap::btree::BiBTreeMap;
//use std::assert_matches::assert_matches;

///```
/// use cryptatools_core::utils::{convert::Encode, alphabets::split_bytes_by_characters_representation, alphabets::Alphabet};
Expand Down Expand Up @@ -873,9 +872,6 @@ impl Alphabet {
/// Returns: a converted human readable set of character text in the same order as the original unconverted text.
///
/// ```
/// #![feature(assert_matches)]
///
/// use std::assert_matches::assert_matches;
/// use cryptatools_core::utils::{convert::Encode, alphabets::split_bytes_by_characters_representation, alphabets::Alphabet};
/// use cryptatools_core::utils::alphabets::Encoding;
///
Expand Down
Loading