Skip to content

Commit

Permalink
temp remote doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
foxzool committed Feb 19, 2024
1 parent df59ea7 commit 4d59297
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ keywords = ["bevy", "http", "plugin"]
bevy = { version = "0.13.0", default-features = false, features = ["multi-threaded"] }
ehttp = { version = "0.5.0", features = ["native-async"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_json = "1.0"

[lib]
doctest = false
8 changes: 1 addition & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ use bevy::tasks::{block_on, poll_once, IoTaskPool, Task};

use ehttp::{Request, Response};

pub mod prelude {
pub use super::typed::{register_request_type, RequestBundle, TypedResponse};
pub use super::{
HttpClientPlugin, HttpClientSetting, HttpRequest, HttpResponse, HttpResponseError,
RequestTask,
};
}
pub mod prelude;

/// Plugin that provides support for send http request and handle response.
///
Expand Down
4 changes: 4 additions & 0 deletions src/prelude.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pub use super::typed::{register_request_type, RequestBundle, TypedResponse};
pub use super::{
HttpClientPlugin, HttpClientSetting, HttpRequest, HttpResponse, HttpResponseError, RequestTask,
};

0 comments on commit 4d59297

Please sign in to comment.