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

Remove constants module #72

Merged
merged 2 commits into from
May 1, 2019
Merged

Remove constants module #72

merged 2 commits into from
May 1, 2019

Conversation

brycx
Copy link
Member

@brycx brycx commented Apr 27, 2019

This removes the hazardous::constants module. All public types therein have now been made private and only a selected number of constants are still public. They have been moved to the accompanying implementations module.

The motivation for this is 1) Having all constants in one module, makes it tiresome to look up when you only want to see the ones relevant to the current interface you're working with. 2) The types and constants are represented through each newtype in every module, and the user shouldn't have to interact with them.

…tation modules. All types are now private and some constants are no longer public.
@brycx brycx added the improvement General improvements to code label Apr 27, 2019
@codecov
Copy link

codecov bot commented Apr 27, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@e15128e). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #72   +/-   ##
=========================================
  Coverage          ?   96.18%           
=========================================
  Files             ?       45           
  Lines             ?     6190           
  Branches          ?        0           
=========================================
  Hits              ?     5954           
  Misses            ?      236           
  Partials          ?        0
Impacted Files Coverage Δ
src/hazardous/aead/chacha20poly1305.rs 89.04% <ø> (ø)
src/hazardous/aead/xchacha20poly1305.rs 85.15% <ø> (ø)
src/hazardous/hash/blake2b.rs 97.93% <ø> (ø)
src/typedefs.rs 94.3% <ø> (ø)
src/hazardous/stream/xchacha20.rs 84.67% <ø> (ø)
src/hazardous/hash/sha512.rs 98.52% <ø> (ø)
src/hazardous/mac/poly1305.rs 95.84% <ø> (ø)
src/hazardous/stream/chacha20.rs 88.2% <ø> (ø)
src/hazardous/kdf/hkdf.rs 100% <ø> (ø)
src/aead.rs 98.82% <100%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e15128e...e694853. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 27, 2019

Codecov Report

Merging #72 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
+ Coverage   96.17%   96.23%   +0.06%     
==========================================
  Files          45       45              
  Lines        6190     6190              
==========================================
+ Hits         5953     5957       +4     
+ Misses        237      233       -4
Impacted Files Coverage Δ
src/hazardous/aead/chacha20poly1305.rs 89.32% <ø> (ø) ⬆️
src/hazardous/aead/xchacha20poly1305.rs 85.58% <ø> (+0.43%) ⬆️
src/hazardous/hash/blake2b.rs 97.93% <ø> (ø) ⬆️
src/typedefs.rs 94.3% <ø> (ø) ⬆️
src/hazardous/stream/xchacha20.rs 83.94% <ø> (ø) ⬆️
src/hazardous/hash/sha512.rs 98.52% <ø> (ø) ⬆️
src/hazardous/mac/poly1305.rs 95.84% <ø> (ø) ⬆️
src/hazardous/stream/chacha20.rs 88.2% <ø> (ø) ⬆️
src/hazardous/kdf/hkdf.rs 100% <ø> (+1.17%) ⬆️
src/aead.rs 98.82% <100%> (ø) ⬆️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e15128e...e694853. Read the comment docs.

@brycx brycx merged commit 48f7d82 into master May 1, 2019
@brycx brycx deleted the constants branch May 1, 2019 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement General improvements to code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant