hermes-runtime-components 0.1.0

Implementation of an IBC Relayer in Rust, as a library
Documentation
1
2
3
4
5
6
7
8
9
10
11
use alloc::string::String;

use cgp::prelude::*;

use crate::traits::fs::file_path::HasFilePathType;

#[derive_component(FileAsStringReaderComponent, FileAsStringReader<Runtime>)]
#[async_trait]
pub trait CanReadFileAsString: HasFilePathType + HasErrorType {
    async fn read_file_as_string(&self, file_path: &Self::FilePath) -> Result<String, Self::Error>;
}