diff options
author | Teddy Wing | 2020-08-01 15:32:17 +0200 |
---|---|---|
committer | Teddy Wing | 2020-08-01 15:32:17 +0200 |
commit | fdc1cc7bc3d237ef4976f9f9d2ffc09b7ba164d5 (patch) | |
tree | 4dc68f07d4a2e7ad8193f2b5f9a90c9fe6792aec /github-suggestion/src/lib.rs | |
parent | b218abebdf8a0aed73bfe6f61ab22e51a0f2f43c (diff) | |
download | git-suggestion-fdc1cc7bc3d237ef4976f9f9d2ffc09b7ba164d5.tar.bz2 |
Move library to a separate crate
Keep the binaries in the root crate, and add a new crate for the
`github-suggestion` library.
I want to add some library code to the CLI programs to extract common
functionality between the different binaries.
Diffstat (limited to 'github-suggestion/src/lib.rs')
-rw-r--r-- | github-suggestion/src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/github-suggestion/src/lib.rs b/github-suggestion/src/lib.rs new file mode 100644 index 0000000..c082736 --- /dev/null +++ b/github-suggestion/src/lib.rs @@ -0,0 +1,11 @@ +#![warn(rust_2018_idioms)] + + +pub mod client; +pub mod suggestion; + +mod url; + +pub use crate::client::Client; +pub use crate::suggestion::Suggestion; +pub use crate::url::SuggestionUrl; |