Skip to content

Release Version 0.2 #162

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 57 commits into from
Sep 10, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
6057367
Only impl std traits if feature is specified (#106)
josephlr Sep 20, 2019
add45a3
Remove dummy implementation (#107)
josephlr Sep 22, 2019
1f1f964
Merge branch 'master' into 0.2
josephlr Oct 24, 2019
cf2d81b
Improve src/lib.rs cfgs (#119)
josephlr Oct 25, 2019
8096bac
0.2: Error and Testing improvements (#120)
josephlr Oct 28, 2019
0f14f2a
Merge branch 'master' into 0.2
josephlr Jan 8, 2020
d6b75d1
log: Remove optional log dependancy (#131)
josephlr Jan 9, 2020
448bcac
custom: Add support for Custom RNGs
josephlr Oct 26, 2019
3d7a7b5
Remove built-in support for wasm32-unknown-unknown
josephlr Oct 26, 2019
7d558f1
custom: Add custom RNG for stdweb
josephlr Oct 26, 2019
8365277
custom: Add Custom RNG for wasm-bindgen
josephlr Oct 26, 2019
4263ac6
custom: Allow no_std custom RNG handlers
josephlr Feb 19, 2020
cd84484
target: Drop support for some x86_64 targets
josephlr Feb 19, 2020
ff6299d
cpu: Add support for CPU-based randomness
josephlr Feb 19, 2020
1375181
tests: Improve testing infrastructure
josephlr Feb 19, 2020
52e7e9f
tests: Test CPU-based RNG on all x86 targets
josephlr Feb 19, 2020
2e39004
rdrand: Add 32-bit x86 support
josephlr Feb 19, 2020
c25d0a8
travis: Fix wasm32 CI
josephlr Apr 25, 2020
3d17318
Merge pull request #141 from josephlr/travis
dhardy Apr 26, 2020
d1a84db
error: Make internal_error! a function
josephlr Feb 25, 2020
b3d3fbc
assert: Make use of asserts consistent
josephlr Feb 26, 2020
afcfcd1
build: Remove getrandom_uwp cfg
josephlr Feb 26, 2020
138d903
ios: Don't use SecRandom type
josephlr Feb 26, 2020
74eca5e
fmt: Use consistent include style
josephlr Feb 26, 2020
c7862af
travis: Allow nightly builds to fail
josephlr Apr 27, 2020
717b5cc
Merge pull request #145 from josephlr/nightly
dhardy Apr 27, 2020
7bfdabf
wasm-bindgen: Added support for Internet Explorer 11
zer0x64 Apr 24, 2020
ec4a3e1
Fixing Webpack require warning
Pauan Mar 30, 2020
8191d7f
Merge pull request #143 from josephlr/fixing-webpack-warning
dhardy Apr 28, 2020
7631f75
ci: Pin the Cross binary to avoid breaking the CI
josephlr May 23, 2020
10df558
AppVeyor: Run CI on 0.2 branch
josephlr May 25, 2020
a29180a
wasm32: Unify error codes an implementations
josephlr May 22, 2020
618593c
cpu: Have "cpu" feature take precedence over "custom"
josephlr May 28, 2020
6aba12c
Rename "cpu" feature to "rdrand"
josephlr May 29, 2020
eacffd5
wasm: Move JS-based Custom RNGs back into the main crate
josephlr May 28, 2020
11b4f9e
wasm: Update testing framework
josephlr May 28, 2020
706a429
stdweb: Remove CI runs with cargo-web
josephlr Jul 21, 2020
f6af828
ci: Remove old reference to wasm-bindgen-getrandom
josephlr Jul 21, 2020
2b03b0e
Remove workaround for older Linux kernels
newpavlov Jul 19, 2020
fc83790
rustfmt: Run cargo fmt
josephlr Jul 22, 2020
24e5886
bsd_arandom: Read only 256 bytes at a time
josephlr Aug 14, 2020
2723e7f
travis: Apply #157 to 0.2 branch
josephlr Sep 8, 2020
0a5017e
Update MSRV to 1.34
josephlr Sep 8, 2020
c36dc82
travis: Stop pinning nightly on 0.2
josephlr Sep 8, 2020
4d750dd
travis: Enable Firefox testing
josephlr Sep 9, 2020
99260df
Update docs for 0.2
josephlr May 25, 2020
4f4009a
Format compile_error!
josephlr Sep 8, 2020
e8ff222
docs: Update wasm32 support section
josephlr Sep 8, 2020
b416060
docs: Clarify when/where to use custom implementations
josephlr Sep 8, 2020
bf6d124
travis: Make sure to run docs tests for all features
josephlr Sep 9, 2020
a6fa63c
docs: Update section headers
josephlr Sep 9, 2020
1ebd2ce
docs: Clarify intended usage for Custom RNGs
josephlr Sep 9, 2020
b8c0c8d
custom: Add check for function type
josephlr Sep 9, 2020
e0c155e
docs: Clarify deps of root binary crate
josephlr Sep 9, 2020
b929998
docs: add target triple to docs table
josephlr Sep 10, 2020
5f4886b
Merge branch 'master' into 0.2
josephlr Sep 10, 2020
5d2a4a2
Update Changelog for 0.2
josephlr Sep 10, 2020
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
Prev Previous commit
Next Next commit
Remove dummy implementation (#107)
Removes the “dummy” feature and “wasm32-unknown-unknown” dummy impl
  • Loading branch information
josephlr committed Oct 16, 2019
commit add45a389937d9c26c6584dc2a7d0fb9c0de7d9c
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ wasm-bindgen-test = "0.2"

[features]
std = []
# Enables dummy implementation for unsupported targets
dummy = []
# Unstable feature to support being a libstd dependency
rustc-dep-of-std = ["compiler_builtins", "core"]
# Unstable feature for testing
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ a compilation error. If you want to build an application which uses `getrandom`
for such target, you can either:
- Use [`[replace]`][replace] or [`[patch]`][patch] section in your `Cargo.toml`
to switch to a custom implementation with a support of your target.
- Enable the `dummy` feature to have getrandom use an implementation that always
fails at run-time on unsupported targets.

[replace]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-replace-section
[patch]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-patch-section
Expand Down
14 changes: 0 additions & 14 deletions src/dummy.rs

This file was deleted.

11 changes: 4 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
//! for such target, you can either:
//! - Use [`[replace]`][replace] or [`[patch]`][patch] section in your `Cargo.toml`
//! to switch to a custom implementation with a support of your target.
//! - Enable the `dummy` feature to have getrandom use an implementation that always
//! fails at run-time on unsupported targets.
//!
//! [replace]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-replace-section
//! [patch]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-patch-section
Expand Down Expand Up @@ -239,13 +237,12 @@ cfg_if! {
} else if #[cfg(feature = "stdweb")] {
#[path = "wasm32_stdweb.rs"] mod imp;
} else {
// Always have an implementation for wasm32-unknown-unknown.
// See https://github.com/rust-random/getrandom/issues/87
#[path = "dummy.rs"] mod imp;
compile_error!("\
Enable crate features to use the wasm32-unknown-unknown target, see: \
https://docs.rs/getrandom/#support-for-webassembly-and-asmjs\
");
}
}
} else if #[cfg(feature = "dummy")] {
#[path = "dummy.rs"] mod imp;
} else {
compile_error!("\
target is not supported, for more information see: \
Expand Down