aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-03-25 13:44:03 +0000
committerAkshay <[email protected]>2020-03-25 13:44:03 +0000
commit89c46c404907d8a91848242aedc4bdc5eb4c51a4 (patch)
tree1a55ba3ce8619c96987fe6e21f2f42e31a802ae0
parent4cabfafb9c82c717c4953049307743cd9d64c069 (diff)
add docs, move exports into module
-rw-r--r--fondant_derive/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
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 @@
1//! Please refer to the `fondant` crate for usage instructions
2
1extern crate proc_macro; 3extern crate proc_macro;
2 4
3use ::std::ffi::{OsStr, OsString}; 5use ::std::ffi::{OsStr, OsString};
@@ -90,7 +92,8 @@ fn gen_impl(ast: &DeriveInput, cfg_path: ConfigPath) -> TokenStream {
90 let (ser, ser_fn) = pick_serializer(&filetype); 92 let (ser, ser_fn) = pick_serializer(&filetype);
91 93
92 let includes = quote! { 94 let includes = quote! {
93 use ::fondant::*; 95 use ::fondant::fondant_exports::*;
96 use ::fondant::FondantError ;
94 use ::std::option::Option; 97 use ::std::option::Option;
95 use ::std::fs::{self, File, OpenOptions}; 98 use ::std::fs::{self, File, OpenOptions};
96 use ::std::io::prelude::*; 99 use ::std::io::prelude::*;