Skip to content

Commit

Permalink
Update crate manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
h33p committed Dec 7, 2023
1 parent 8870c14 commit 2fc6398
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 5 deletions.
5 changes: 5 additions & 0 deletions mfio-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name = "mfio-derive"
version = "0.1.0"
rust-version = "1.72"
edition = "2021"
authors = ["Aurimas Blažulionis <[email protected]>"]
license = "MIT"
repository = "https://github.com/memflow/mfio"
documentation = "https://docs.rs/mfio-derive"
description = "mfio derive macros"

[lib]
proc-macro = true
Expand Down
10 changes: 9 additions & 1 deletion mfio-netfs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
[package]
name = "mfio-netfs"
version = "0.1.0"
rust-version = "1.72"
rust-version = "1.74"
edition = "2021"
authors = ["Aurimas Blažulionis <[email protected]>"]
license = "MIT"
repository = "https://github.com/memflow/mfio"
description = "mfio based network filesystem"
documentation = "https://docs.rs/mfio-netfs"
keywords = [ "mfio", "async", "network", "filesystem" ]
categories = [ "asynchronous", "network-programming", "filesystem" ]
readme = "README.md"

[[bin]]
name = "mfio-netfs-server"
Expand Down
9 changes: 9 additions & 0 deletions mfio-netfs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# mfio-netfs

# Network filesystem sample for mfio

This crate is currently just an example showing how a relatively simple filesystem proxy could
be implemented using mfio's TCP streams.

Please do not use this in production, because the library does close to no error checking, so
data corruption is likely to happen.
10 changes: 10 additions & 0 deletions mfio-netfs/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//! # mfio-netfs
//!
//! # Network filesystem sample for mfio
//!
//! This crate is currently just an example showing how a relatively simple filesystem proxy could
//! be implemented using mfio's TCP streams.
//!
//! Please do not use this in production, because the library does close to no error checking, so
//! data corruption is likely to happen.
#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;
Expand Down
2 changes: 0 additions & 2 deletions mfio-netfs/src/net/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
pub mod client;
pub mod server;

pub use client::NetworkFs;

use serde::{Deserialize, Serialize};

use bytemuck::{Pod, Zeroable};
Expand Down
6 changes: 5 additions & 1 deletion mfio-rt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
[package]
name = "mfio-rt"
version = "0.1.0"
rust-version = "1.72"
rust-version = "1.74"
edition = "2021"
authors = ["Aurimas Blažulionis <[email protected]>"]
license = "MIT"
repository = "https://github.com/memflow/mfio"
description = "mfio based async runtime"
documentation = "https://docs.rs/mfio-rt"
keywords = [ "mfio", "async", "runtime", "io_uring", "iocp" ]
categories = [ "asynchronous", "network-programming", "no-std", "os", "filesystem" ]
readme = "README.md"

[package.metadata.docs.rs]
all-features = true
Expand Down
15 changes: 15 additions & 0 deletions mfio-rt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# mfio-rt

## mfio Backed Runtime

This crate aims to provide building blocks for mfio backed asynchronous runtimes. The traits
have the option to not rely on the standard library. This makes the system great for `no_std`
embedded environments or kernel-side code.

`native` feature (depends on `std`) enables native implementations of the runtime through
`NativeRt` structure.

`virt` feature enables a virtual in-memory runtime through `VirtRt` structure.

Custom runtimes may be implemented by implementing `IoBackend`, and any of the runtime
traits, such as `Fs` or `Tcp`.
7 changes: 7 additions & 0 deletions mfio-rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
//!
//! Custom runtimes may be implemented by implementing [`IoBackend`], and any of the runtime
//! traits, such as [`Fs`] or [`Tcp`].
//!
//! ## `no_std`
//!
//! Currently, only [`Fs`] is exposed in `no_std` environments. [`Tcp`] depends on structures, such
//! as [`SocketAddr`](https://doc.rust-lang.org/nightly/core/net/enum.SocketAddr.html) that are
//! currently not available in `core`. This will change once
//! [`ip_in_core`](https://github.com/rust-lang/rust/issues/108443) is stabilized.
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]
Expand Down
6 changes: 5 additions & 1 deletion mfio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ edition = "2021"
authors = ["Aurimas Blažulionis <[email protected]>"]
license = "MIT"
repository = "https://github.com/memflow/mfio"
description = "memflow completion-based I/O primitives"
documentation = "https://docs.rs/mfio"
description = "Flexible completion I/O primitives"
keywords = [ "mfio", "memflow", "async", "completion", "io" ]
categories = [ "asynchronous", "no-std", "concurrency" ]
readme = "../README.md"

[package.metadata.docs.rs]
features = ["default", "tokio", "async-io"]
Expand Down
3 changes: 3 additions & 0 deletions mfio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,13 @@ pub(crate) mod std_prelude {
pub mod std {
pub use ::alloc::*;
}
pub use crate::derive::*;
#[cfg(feature = "std")]
pub use ::std;
}

pub use mfio_derive as derive;

pub mod backend;
pub mod error;
#[cfg(feature = "std")]
Expand Down
1 change: 1 addition & 0 deletions mfio/src/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use mfio::locks::Mutex;
use core::sync::atomic::{AtomicBool, Ordering};
use core::task::Waker;

#[allow(unused)]
use mfio_derive::*;

use tarc::{Arc, BaseArc};
Expand Down

0 comments on commit 2fc6398

Please sign in to comment.