diff options
author | Akshay <[email protected]> | 2020-03-25 13:44:03 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-03-25 13:44:03 +0000 |
commit | 89c46c404907d8a91848242aedc4bdc5eb4c51a4 (patch) | |
tree | 1a55ba3ce8619c96987fe6e21f2f42e31a802ae0 | |
parent | 4cabfafb9c82c717c4953049307743cd9d64c069 (diff) |
add docs, move exports into module
-rw-r--r-- | fondant_derive/src/lib.rs | 5 |
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 | |||
1 | extern crate proc_macro; | 3 | extern crate proc_macro; |
2 | 4 | ||
3 | use ::std::ffi::{OsStr, OsString}; | 5 | use ::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::*; |