From eb392c1b1e379cc3a9f4c6e7571ac83c9ce7eac5 Mon Sep 17 00:00:00 2001 From: mosure Date: Fri, 26 Jan 2024 14:58:08 -0600 Subject: [PATCH] feat: export parser, serializer, and deserializer --- Cargo.toml | 7 +------ examples/minimal.rs | 12 ++++++------ src/lib.rs | 4 ++-- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f6e3d3a..3d003b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bevy_args" description = "bevy plugin to parse command line arguments and URL query parameters" -version = "1.0.0" +version = "1.1.0" edition = "2021" authors = ["mosure "] license = "MIT" @@ -73,8 +73,3 @@ codegen-units = 1 [lib] path = "src/lib.rs" - - -[examples] -name = "minimal" -path = "examples/minimal.rs" diff --git a/examples/minimal.rs b/examples/minimal.rs index f165530..6f814fa 100644 --- a/examples/minimal.rs +++ b/examples/minimal.rs @@ -1,14 +1,14 @@ use bevy::prelude::*; -use clap::Parser; -use serde::{ - Deserialize, - Serialize, -}; #[cfg(target_arch = "wasm32")] use wasm_bindgen::prelude::*; -use bevy_args::BevyArgsPlugin; +use bevy_args::{ + BevyArgsPlugin, + Deserialize, + Parser, + Serialize, +}; #[cfg(target_arch = "wasm32")] diff --git a/src/lib.rs b/src/lib.rs index a4c112e..1a17996 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,8 +4,8 @@ use std::marker::PhantomData; use std::collections::HashMap; use bevy::prelude::*; -use clap::Parser; -use serde::{ +pub use clap::Parser; +pub use serde::{ Deserialize, Serialize, };