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
12
13
14
15
16
use alloc::string::String;

use cgp::prelude::*;

#[derive_component(FilePathTypeComponent, ProvideFilePathType<Runtime>)]
pub trait HasFilePathType: Async {
    type FilePath: Async;

    fn file_path_from_string(path: &str) -> Self::FilePath;

    fn file_path_to_string(path: &Self::FilePath) -> String;

    fn join_file_path(path1: &Self::FilePath, path2: &Self::FilePath) -> Self::FilePath;
}

pub type FilePathOf<Runtime> = <Runtime as HasFilePathType>::FilePath;