diff --git a/examples/ansible-playbook-simple/main.rs b/examples/ansible-playbook-simple/main.rs index 22310d2..346d4a9 100644 --- a/examples/ansible-playbook-simple/main.rs +++ b/examples/ansible-playbook-simple/main.rs @@ -1,5 +1,4 @@ -use rs_ansible::options::*; -use rs_ansible::playbook::*; +use rs_ansible::*; fn main() { let conn_opts = AnsibleConnectionOptions { diff --git a/src/lib.rs b/src/lib.rs index 39957e9..ae3d576 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,7 @@ -pub mod executor; -pub mod options; -pub mod playbook; +mod executor; +mod options; +mod playbook; + +pub use executor::*; +pub use options::*; +pub use playbook::*; diff --git a/tests/executor.rs b/tests/executor.rs index 861208e..f6ec506 100644 --- a/tests/executor.rs +++ b/tests/executor.rs @@ -1,7 +1,7 @@ #[cfg(test)] mod tests { use crate::test_utils::*; - use rs_ansible::executor::*; + use rs_ansible::*; use std::fs; #[test] diff --git a/tests/options.rs b/tests/options.rs index a9d7435..ee333bc 100644 --- a/tests/options.rs +++ b/tests/options.rs @@ -1,6 +1,6 @@ #[cfg(test)] mod tests { - use rs_ansible::options::*; + use rs_ansible::*; #[test] fn generate_connection_options() { diff --git a/tests/playbook.rs b/tests/playbook.rs index 0cd7d4e..79f1348 100644 --- a/tests/playbook.rs +++ b/tests/playbook.rs @@ -2,8 +2,7 @@ mod tests { use serde_json::json; - use rs_ansible::options::*; - use rs_ansible::playbook::*; + use rs_ansible::*; #[test] fn generate_connection_options() {