Skip to content
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
35 changes: 35 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Nightly Checks

on:
schedule:
# Every night at midnight
- cron: '0 0 * * *'

jobs:
dependencies:
name: Check for unused dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: Install cargo udeps
run: cargo install cargo-udeps --locked
- name: Execute cargo udeps
run: cargo +nightly udeps

audit:
name: Check for crates with security vulnerabilities
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: Install cargo audit
run: cargo install cargo-audit
- name: Execute cargo audit
run: cargo audit
8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ edition = "2018"
documentation = "https://docs.rs/crate/parsec-client"

[dependencies]
parsec-interface = "0.20.0"
num = "0.2.1"
rand = "0.7.3"
log = "0.4.8"
parsec-interface = "0.20.2"
num = "0.3.0"
log = "0.4.11"
derivative = "2.1.1"
uuid = "0.7.4"
zeroize = "1.1.0"
users = "0.10.0"

Expand Down
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ It is also desactivated for testing.

The software is provided under Apache-2.0. Contributions to this project are accepted under the same license.

This project uses the following third party crates:
* num (MIT and Apache-2.0)
* rand (Apache-2.0)
* log (Apache-2.0)
* derivative (MIT and Apache-2.0)
* mockstream (MIT)
* uuid (MIT and Apache-2.0)
* users (MIT)

## Contributing

Please check the [**Contribution Guidelines**](https://parallaxsecond.github.io/parsec-book/contributing.html)
Expand Down
2 changes: 1 addition & 1 deletion src/core/basic_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ use zeroize::Zeroizing;
///# use parsec_client::core::secrecy::Secret;
///# use parsec_client::core::interface::requests::ProviderID;
///# let client: BasicClient = BasicClient::new(AuthenticationData::AppIdentity(Secret::new(String::from("app-name"))));
///use uuid::Uuid;
///use parsec_interface::operations::list_providers::Uuid;
///
///// Identify provider by its UUID (in this case, the PKCS11 provider)
///let desired_provider_uuid = Uuid::parse_str("30e39502-eba6-4d60-a4af-c518b7f5e38f").unwrap();
Expand Down
6 changes: 3 additions & 3 deletions src/core/testing/core_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::error::{ClientErrorKind, Error};
use crate::BasicClient;
use mockstream::{FailingMockStream, MockStream};
use parsec_interface::operations;
use parsec_interface::operations::list_providers::ProviderInfo;
use parsec_interface::operations::list_providers::{ProviderInfo, Uuid};
use parsec_interface::operations::psa_algorithm::*;
use parsec_interface::operations::psa_key_attributes::*;
use parsec_interface::operations::Convert;
Expand Down Expand Up @@ -76,7 +76,7 @@ fn list_provider_test() {
let mut client: TestBasicClient = Default::default();
let mut provider_info = Vec::new();
provider_info.push(ProviderInfo {
uuid: uuid::Uuid::nil(),
uuid: Uuid::nil(),
description: String::from("Some empty provider"),
vendor: String::from("Arm Ltd."),
version_maj: 1,
Expand All @@ -95,7 +95,7 @@ fn list_provider_test() {

// Check response:
assert_eq!(providers.len(), 1);
assert_eq!(providers[0].uuid, uuid::Uuid::nil());
assert_eq!(providers[0].uuid, Uuid::nil());
}

#[test]
Expand Down