Skip to content

Commit ffd16da

Browse files
author
daniel.eades
committed
remove unused 'extern crate' calls
1 parent 5526b60 commit ffd16da

File tree

13 files changed

+0
-36
lines changed

13 files changed

+0
-36
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ This library's goals are to be *correct* and *fast*. It's thoroughly tested and
1313
## Example
1414

1515
```rust
16-
extern crate base64;
17-
1816
use base64::{encode, decode};
1917

2018
fn main() {

benches/benchmarks.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
extern crate base64;
21
#[macro_use]
32
extern crate criterion;
4-
extern crate rand;
53

64
use base64::display;
75
use base64::{

fuzz/fuzzers/decode_random.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![no_main]
22
#[macro_use] extern crate libfuzzer_sys;
3-
extern crate base64;
43

54
use base64::*;
65

fuzz/fuzzers/roundtrip.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![no_main]
22
#[macro_use] extern crate libfuzzer_sys;
3-
extern crate base64;
43

54
use base64::engine::DEFAULT_ENGINE;
65

fuzz/fuzzers/roundtrip_no_pad.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![no_main]
22
#[macro_use] extern crate libfuzzer_sys;
3-
extern crate base64;
43
use base64::engine::fast_portable;
54

65
fuzz_target!(|data: &[u8]| {

fuzz/fuzzers/roundtrip_random_config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![no_main]
22
#[macro_use] extern crate libfuzzer_sys;
3-
extern crate base64;
43

54
use base64::*;
65

fuzz/fuzzers/utils.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
extern crate base64;
2-
extern crate rand;
3-
extern crate rand_pcg;
4-
extern crate ring;
5-
61
use base64::{alphabet, engine::fast_portable};
72
use self::rand::{Rng, SeedableRng};
83
use self::rand_pcg::Pcg32;

src/decode.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ impl error::Error for DecodeError {
6262
///# Example
6363
///
6464
///```rust
65-
///extern crate base64;
66-
///
6765
///fn main() {
6866
/// let bytes = base64::decode("aGVsbG8gd29ybGQ=").unwrap();
6967
/// println!("{:?}", bytes);
@@ -80,8 +78,6 @@ pub fn decode<T: AsRef<[u8]>>(input: T) -> Result<Vec<u8>, DecodeError> {
8078
///# Example
8179
///
8280
///```rust
83-
///extern crate base64;
84-
///
8581
///fn main() {
8682
/// let bytes = base64::decode_engine(
8783
/// "aGVsbG8gd29ybGR+Cg==",
@@ -117,8 +113,6 @@ pub fn decode_engine<E: Engine, T: AsRef<[u8]>>(
117113
///# Example
118114
///
119115
///```rust
120-
///extern crate base64;
121-
///
122116
///const URL_SAFE_ENGINE: base64::engine::fast_portable::FastPortable =
123117
/// base64::engine::fast_portable::FastPortable::from(
124118
/// &base64::alphabet::URL_SAFE,

src/encode.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ use alloc::{string::String, vec};
1313
///# Example
1414
///
1515
///```rust
16-
///extern crate base64;
17-
///
1816
///fn main() {
1917
/// let b64 = base64::encode(b"hello world");
2018
/// println!("{}", b64);
@@ -31,8 +29,6 @@ pub fn encode<T: AsRef<[u8]>>(input: T) -> String {
3129
///# Example
3230
///
3331
///```rust
34-
///extern crate base64;
35-
///
3632
///const URL_SAFE_ENGINE: base64::engine::fast_portable::FastPortable =
3733
/// base64::engine::fast_portable::FastPortable::from(
3834
/// &base64::alphabet::URL_SAFE,
@@ -69,8 +65,6 @@ pub fn encode_engine<E: Engine, T: AsRef<[u8]>>(input: T, engine: &E) -> String
6965
///# Example
7066
///
7167
///```rust
72-
///extern crate base64;
73-
///
7468
///const URL_SAFE_ENGINE: base64::engine::fast_portable::FastPortable =
7569
/// base64::engine::fast_portable::FastPortable::from(
7670
/// &base64::alphabet::URL_SAFE,
@@ -122,8 +116,6 @@ pub fn encode_engine_string<E: Engine, T: AsRef<[u8]>>(
122116
/// # Example
123117
///
124118
/// ```rust
125-
/// extern crate base64;
126-
///
127119
/// fn main() {
128120
/// let s = b"hello internet!";
129121
/// let mut buf = Vec::new();

tests/decode.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate base64;
2-
31
use base64::engine::fast_portable::{FastPortable, NO_PAD};
42
use base64::engine::DEFAULT_ENGINE;
53
use base64::*;

0 commit comments

Comments
 (0)