You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
pubuse client::*;pubuse 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 ofuse 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 🤔
The text was updated successfully, but these errors were encountered:
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:Basic example
And thus let us (=the users) write import like that;
Or if you want a few basic structure structures:
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 🤔The text was updated successfully, but these errors were encountered: