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

Improve general code quality #6

Merged
merged 2 commits into from
Mar 16, 2021
Merged

Conversation

hug-dev
Copy link
Member

@hug-dev hug-dev commented Mar 16, 2021

This commit:

  • uses a ci.sh script to perform all CI tasks
  • adds cross-compilation logic
  • improves Slot to integer conversion handling (thanks to
    @george-hopkins)
  • adds some deny
  • implements Copy, Debug, Clone where needed
  • moves tests to the integration test folder
  • fixes various lints
  • adds credit

Co-authored-by: George Hopkins george-hopkins@null.net
Signed-off-by: Hugues de Valon hugues.devalon@arm.com

@hug-dev hug-dev requested a review from ionut-arm March 16, 2021 14:00
@hug-dev hug-dev linked an issue Mar 16, 2021 that may be closed by this pull request
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Cheers

README.md Outdated
Comment on lines 22 to 23
Thanks to Joe Ellis (@joechrisellis) and Ionuț Mihalcea (@ionut-arm) for their early work on the
crate.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least add yourself as well - "Joe Ellis, Ionut Mihalcea, and Hugues de Valon developed the early prototype...". Seems weird to only mention us two when it's not on your personal repo.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively just don't mention anyone - Parsec developers created .... though that's kinda superfluous

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm yeah I wanted to credit those involved in this... I will just add them as co-author of this specific commit.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I should have done that for the first commit but I forgot)

Comment on lines +9 to +14
let supported_platforms = vec![
"x86_64-unknown-linux-gnu".to_string(),
"aarch64-unknown-linux-gnu".to_string(),
"armv7-unknown-linux-gnueabi".to_string(),
"arm-unknown-linux-gnueabi".to_string(),
];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Comment on lines +10 to +11
env::var("PKCS11_SOFTHSM2_MODULE")
.unwrap_or_else(|_| "/usr/local/lib/softhsm/libsofthsm2.so".to_string()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 💯

use std::thread;

#[test]
#[serial]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, didn't know about this before

This commit:
* uses a ci.sh script to perform all CI tasks
* adds cross-compilation logic
* improves Slot to integer conversion handling (thanks to
@george-hopkins)
* adds some deny
* implements Copy, Debug, Clone where needed
* moves tests to the integration test folder
* fixes various lints
* adds credit

Co-authored-by: George Hopkins <george-hopkins@null.net>
Co-authored-by: Joe Ellis <joe.ellis@arm.com>
Co-authored-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
@hug-dev hug-dev merged commit f772b7d into parallaxsecond:main Mar 16, 2021
@hug-dev hug-dev deleted the code-hygiene branch March 16, 2021 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add some deny
2 participants