Search code examples
rustminio

How to use Minio with Rust


I am trying to create an API to use minio with a Rust backend. I tried following this post as a starting point but it gives me the error

       | use minio::s3::http::BaseUrl;
       |     ^^^^^ use of undeclared crate or module `minio`

I searched for the correct dependency to add to my cargo.toml file, but again I came across this thread in which the last comment indicates the library is not ready to be used yet.

I am unsure at this point how to move forward. Is it possible to use minio with Rust? If so could anybody help with a more detailed tutorial or documentation please?

Thanks in advance!


Solution

  • If the crate is not available at crates.io, you can specify it from a git repository as per the documentation.

    [dependencies]
    minio = { git = "https://github.com/minio/minio-rs.git" }