From 89c46c404907d8a91848242aedc4bdc5eb4c51a4 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 25 Mar 2020 19:14:03 +0530 Subject: add docs, move exports into module --- fondant_derive/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fondant_derive/src') diff --git a/fondant_derive/src/lib.rs b/fondant_derive/src/lib.rs index 0c66d62..1a0b945 100644 --- a/fondant_derive/src/lib.rs +++ b/fondant_derive/src/lib.rs @@ -1,3 +1,5 @@ +//! Please refer to the `fondant` crate for usage instructions + extern crate proc_macro; use ::std::ffi::{OsStr, OsString}; @@ -90,7 +92,8 @@ fn gen_impl(ast: &DeriveInput, cfg_path: ConfigPath) -> TokenStream { let (ser, ser_fn) = pick_serializer(&filetype); let includes = quote! { - use ::fondant::*; + use ::fondant::fondant_exports::*; + use ::fondant::FondantError ; use ::std::option::Option; use ::std::fs::{self, File, OpenOptions}; use ::std::io::prelude::*; -- cgit v1.2.3