Skip to content

drop external_doc feature gate usage #85

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

Merged
merged 2 commits into from
Jul 13, 2021

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Jun 22, 2021

The feature no longer exists on nightly.

@daxpedda
Copy link
Contributor

I've stumbled on this when trying the simd_backend feature of curve25519-dalek, which is currently fails to compile.

Co-authored-by: daxpedda <[email protected]>
CjS77 added a commit to tari-project/tari-crypto that referenced this pull request Jul 2, 2021
Updated dependencies such that Rust stable 1.53 is now supported.
The optimised avx_2 option will NOT rust on stable because there's
still an unstable feature on subtle-ng. BUT this feature is actually
for doc generation and has been removed from Rust. As soon as subtle-ng
merges dalek-cryptography/subtle#85, avx2 will
probably be supported on stable as well.

The rand dep update breaks the benchmarks, but these will be fixed in
the next commit.
CjS77 added a commit to tari-project/tari-crypto that referenced this pull request Jul 2, 2021
Updated dependencies such that Rust stable 1.53 is now supported.
The optimised avx_2 option will NOT rust on stable because there's
still an unstable feature on subtle-ng. BUT this feature is actually
for doc generation and has been removed from Rust. As soon as subtle-ng
merges dalek-cryptography/subtle#85, avx2 will
probably be supported on stable as well.

The rand dep update breaks the benchmarks, but these will be fixed in
the next commit.
CjS77 added a commit to tari-project/tari-crypto that referenced this pull request Jul 2, 2021
Updated dependencies such that Rust stable 1.53 is now supported.
The optimised avx_2 option will NOT rust on stable because there's
still an unstable feature on subtle-ng. BUT this feature is actually
for doc generation and has been removed from Rust. As soon as subtle-ng
merges dalek-cryptography/subtle#85, avx2 will
probably be supported on stable as well.

The rand dep update breaks the benchmarks, but these will be fixed in
the next commit.
CjS77 added a commit to tari-project/tari-crypto that referenced this pull request Jul 2, 2021
* Support stable rust

Updated dependencies such that Rust stable 1.53 is now supported.
The optimised avx_2 option will NOT rust on stable because there's
still an unstable feature on subtle-ng. BUT this feature is actually
for doc generation and has been removed from Rust. As soon as subtle-ng
merges dalek-cryptography/subtle#85, avx2 will
probably be supported on stable as well.

The rand dep update breaks the benchmarks, but these will be fixed in
the next commit.

* Update benchmarks and fmt

* Update benchmark code to use new dependency APIs
* Run rust-fmt
CjS77 added a commit to tari-project/tari-crypto that referenced this pull request Jul 2, 2021
Updated dependencies such that Rust stable 1.53 is now supported.
The optimised avx_2 option will NOT rust on stable because there's
still an unstable feature on subtle-ng. BUT this feature is actually
for doc generation and has been removed from Rust. As soon as subtle-ng
merges dalek-cryptography/subtle#85, avx2 will
probably be supported on stable as well.

The rand dep update breaks the benchmarks, but these will be fixed in
the next commit.
CjS77 added a commit to tari-project/tari-crypto that referenced this pull request Jul 5, 2021
* Support stable rust

Updated dependencies such that Rust stable 1.53 is now supported.
The optimised avx_2 option will NOT rust on stable because there's
still an unstable feature on subtle-ng. BUT this feature is actually
for doc generation and has been removed from Rust. As soon as subtle-ng
merges dalek-cryptography/subtle#85, avx2 will
probably be supported on stable as well.

The rand dep update breaks the benchmarks, but these will be fixed in
the next commit.

* Update benchmarks and fmt

* Update benchmark code to use new dependency APIs
* Run rust-fmt

* Use source coverage in tests

Replace the grcov action with the more accurate source coverage approach
as detailed in
https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/instrument-coverage.html

This PR also provides the `test_coverage.sh` script that generates a
test coverage report lcoally (see the comments for setting up
pre-requisites)

* Exclude std lib from coverage
@trinity-1686a
Copy link
Contributor

Note that has of now, the new doc = include_str!("path") syntax does not work in stable, even when hidden behind features, so this patch does not compile on stable (1.53). However it does compile on beta (1.54), which will be promoted to stable on 29th of July, at which point using cfg_attr won't make much sens as the feature will be entirely stable.

@isislovecruft isislovecruft changed the base branch from master to develop July 13, 2021 01:28
@isislovecruft isislovecruft self-requested a review July 13, 2021 01:28
Copy link
Member

@isislovecruft isislovecruft left a comment

Choose a reason for hiding this comment

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

Hi @Centril! Thanks for the PR! Merging for 2.4.1.

@isislovecruft
Copy link
Member

I suppose I should include this patch for releases of 2.3.x and 2.2.x since people seem to still be using those.

@isislovecruft isislovecruft merged commit 8a70fff into dalek-cryptography:develop Jul 13, 2021
@isislovecruft
Copy link
Member

C.f. #86 where I describe and fix an issue, also note that currently I've only patched this to the 2.4.x series (but I'm perfectly happy to go back to other versions if anyone needs it).

@Centril Centril deleted the patch-1 branch August 4, 2021 12:02
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.

4 participants