#storage-service #async-trait #traits #remi #api #omitted #my-storage-service

yanked remi-core

๐Ÿปโ€โ„๏ธ๐Ÿงถ Core API for the remi-rs crate families

8 unstable releases (3 breaking)

0.4.3 Nov 25, 2023
0.4.2 Oct 31, 2023
0.4.0 Aug 15, 2023
0.3.0 Jul 26, 2023
0.1.0 Feb 9, 2023

#5 in #remi

22 downloads per month

MIT license

23KB
225 lines

๐Ÿปโ€โ„๏ธ๐Ÿงถ remi_core crate

remi_core is the base API that all the supporting libraries are based off. This should only be referenced if you're creating your own storage service.

Example Storage Service

use remi_core::StorageService;
use async_trait::async_trait;

struct MyStorageService;

#[async_trait]
impl StorageService for MyStorageService {
    /* omitted implementation */
}

lib.rs:

๐Ÿปโ€โ„๏ธ๐Ÿงถ remi_core

remi_core is the base API implementation that is used by the remi_* crates available to you. This should be only included in your project if you are creating your own implementation of the StorageService trait.

Example

use remi_core::{StorageService, EmptyConfig};
use async_trait::async_trait;

struct MyStorageService;

#[async_trait]
impl StorageService<EmptyConfig> for MyStorageService {
    /* omitted details */
}

Dependencies

~1.6โ€“2.3MB
~46K SLoC