From 84c7788880dc3198916f4f38c71a393af933dad7 Mon Sep 17 00:00:00 2001 From: baoyachi Date: Tue, 18 Aug 2020 02:17:08 +0800 Subject: [PATCH] update --- Cargo.toml | 2 +- src/lib.rs | 2 ++ src/main.rs | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 16f0a1e..5ce1fac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shadow-rs" -version = "0.3.9" +version = "0.3.10" authors = ["baoyachi "] edition = "2018" description = "A tool record compiled project much information,version info,dependence info.Like shadow,if compiled,never change.forever follow your project." diff --git a/src/lib.rs b/src/lib.rs index f28ce27..fcf91fa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,6 +17,8 @@ use std::fs::File; use std::io::Write; use std::path::Path; +pub use err::{SdResult, ShadowError}; + const SHADOW_RS: &str = "shadow.rs"; /// record compiled project much information. diff --git a/src/main.rs b/src/main.rs index e060695..727201e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,9 @@ extern crate shadow_rs; -use shadow_rs::Shadow; +use shadow_rs::{SdResult, Shadow}; use std::fs; -fn main() -> shadow_rs::err::SdResult<()> { +fn main() -> SdResult<()> { let src_path = std::env::var("CARGO_MANIFEST_DIR")?; Shadow::build(src_path, "./".to_string())?;