Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Fix up extern crates
Browse files Browse the repository at this point in the history
Fix up the extern crates by doing:

- Remove edition 2015 use statements
- Feature guard `base64` re-export with the correct feature
- Re-export `serde` crate
- Add rustdoc to all three pub extern crates
  • Loading branch information
tcharding committed May 10, 2023
1 parent 918b3a7 commit 1aa7215
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@

use serde::{Deserialize, Serialize};

extern crate serde;
/// Re-export `serde` crate.
pub extern crate serde;
/// Re-export `serde_json` crate.
pub extern crate serde_json;

#[cfg(feature = "base64-compat")]
/// Re-export `base64` crate.
#[cfg(feature = "base64")]
pub extern crate base64;

pub mod client;
Expand Down
4 changes: 0 additions & 4 deletions src/simple_http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ use std::sync::{Arc, Mutex, MutexGuard};
use std::time::Duration;
use std::{error, fmt, io, net, num};

use base64;
use serde;
use serde_json;

use crate::client::Transport;
use crate::{Request, Response};

Expand Down
3 changes: 0 additions & 3 deletions src/simple_tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
use std::{error, fmt, io, net, time};

use serde;
use serde_json;

use crate::client::Transport;
use crate::{Request, Response};

Expand Down
3 changes: 0 additions & 3 deletions src/simple_uds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
use std::os::unix::net::UnixStream;
use std::{error, fmt, io, path, time};

use serde;
use serde_json;

use crate::client::Transport;
use crate::{Request, Response};

Expand Down

0 comments on commit 1aa7215

Please sign in to comment.