-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
It's quite boring to start every file with use meilisearch_sdk::{document::*, client::*};
It would be better if in the lib.rs we were re-exporting every structure like that:
pub use client::*;
pub use index::*;
...Basic example
And thus let us (=the users) write import like that;
use meilisearch_sdk::*;Or if you want a few basic structure structures:
use meilisearch_sdk::{Client, Index, Setting};
// instead of
use meilisearch_sdk::{client::Client, indexes::Index, settings::Setting};Other
Also, I never remember which module name is plural or singular so it would hide our inconsistencies in a non-breaking change.
Another solution would be to provide a prelude like in most libraries but I'm not sure we really need it currently since our lib is so smol 🤔
Mubelotix and bidoubiwabrunoocasali and curquiza
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers