-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
so we can start the new design appraoch from scratch... once again *sigh*
- Loading branch information
glendc
committed
Nov 2, 2023
1 parent
7907b53
commit c545ebc
Showing
17 changed files
with
119 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[workspace] | ||
members = [ | ||
"rama", | ||
"rama-old", | ||
] | ||
resolver = "2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[package] | ||
categories = ["asynchronous", "network-programming"] | ||
edition = "2021" | ||
name = "rama-old" | ||
version = "0.2.0" | ||
description = "proxy framework using Tokio written purely in Rust" | ||
homepage = "https://github.com/plabayo/rama" | ||
readme = "../README.md" | ||
keywords = ["io", "async", "non-blocking", "futures"] | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/plabayo/rama" | ||
|
||
[[bin]] | ||
name = "rama" | ||
path = "./bin/main.rs" | ||
|
||
[features] | ||
default = [ | ||
"tokio", | ||
] | ||
tokio = [ | ||
"dep:tokio", | ||
] | ||
|
||
[dependencies] | ||
pin-project-lite = "0.2" | ||
tokio = { version = "1", features = ["full"], optional = true } | ||
tower-async = { version = "0.1", features = ["full"] } | ||
tracing = "0.1" | ||
|
||
[dev-dependencies] | ||
anyhow = "1.0" | ||
clap = { version = "4.3", features = ["derive"] } | ||
futures = "0.3" | ||
tokio-test = "0.4" | ||
tracing-subscriber = { version = "0.3", features = ["env-filter"] } |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
rama/examples/tokio_tcp_echo_server.rs → rama-old/examples/tokio_tcp_echo_server.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
//! # Rama | ||
//! | ||
//! rama is early work in progress, use at your own risk. | ||
//! | ||
//! Not everything that exists is documented and not everything that is documented is implemented. | ||
#![warn( | ||
clippy::all, | ||
clippy::dbg_macro, | ||
clippy::todo, | ||
clippy::empty_enum, | ||
clippy::enum_glob_use, | ||
clippy::mem_forget, | ||
clippy::unused_self, | ||
clippy::filter_map_next, | ||
clippy::needless_continue, | ||
clippy::needless_borrow, | ||
clippy::match_wildcard_for_single_variants, | ||
clippy::if_let_mutex, | ||
clippy::mismatched_target_os, | ||
clippy::await_holding_lock, | ||
clippy::match_on_vec_items, | ||
clippy::imprecise_flops, | ||
clippy::suboptimal_flops, | ||
clippy::lossy_float_literal, | ||
clippy::rest_pat_in_fully_bound_structs, | ||
clippy::fn_params_excessive_bools, | ||
clippy::exit, | ||
clippy::inefficient_to_string, | ||
clippy::linkedlist, | ||
clippy::macro_use_imports, | ||
clippy::option_option, | ||
clippy::verbose_file_reads, | ||
clippy::unnested_or_patterns, | ||
rust_2018_idioms, | ||
future_incompatible, | ||
nonstandard_style, | ||
missing_docs | ||
)] | ||
#![forbid(unsafe_code)] | ||
#![allow(incomplete_features)] | ||
#![feature(async_fn_in_trait)] | ||
#![feature(return_type_notation)] | ||
#![feature(impl_trait_projections)] | ||
#![allow(elided_lifetimes_in_paths, clippy::type_complexity)] | ||
#![cfg_attr(test, allow(clippy::float_cmp))] | ||
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))] | ||
|
||
#[cfg(feature = "tokio")] | ||
pub mod tokio; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,7 @@ | ||
[package] | ||
categories = ["asynchronous", "network-programming"] | ||
edition = "2021" | ||
name = "rama" | ||
version = "0.2.0" | ||
description = "proxy framework using Tokio written purely in Rust" | ||
homepage = "https://github.com/plabayo/rama" | ||
readme = "../README.md" | ||
keywords = ["io", "async", "non-blocking", "futures"] | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/plabayo/rama" | ||
|
||
[[bin]] | ||
name = "rama" | ||
path = "./bin/main.rs" | ||
|
||
[features] | ||
default = [ | ||
"tokio", | ||
] | ||
tokio = [ | ||
"dep:tokio", | ||
] | ||
version = "0.1.0" | ||
edition = "2021" | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
pin-project-lite = "0.2" | ||
tokio = { version = "1", features = ["full"], optional = true } | ||
tower-async = { version = "0.1", features = ["full"] } | ||
tracing = "0.1" | ||
|
||
[dev-dependencies] | ||
anyhow = "1.0" | ||
clap = { version = "4.3", features = ["derive"] } | ||
futures = "0.3" | ||
tokio-test = "0.4" | ||
tracing-subscriber = { version = "0.3", features = ["env-filter"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,14 @@ | ||
//! # Rama | ||
//! | ||
//! rama is early work in progress, use at your own risk. | ||
//! | ||
//! Not everything that exists is documented and not everything that is documented is implemented. | ||
pub fn add(left: usize, right: usize) -> usize { | ||
left + right | ||
} | ||
|
||
#![warn( | ||
clippy::all, | ||
clippy::dbg_macro, | ||
clippy::todo, | ||
clippy::empty_enum, | ||
clippy::enum_glob_use, | ||
clippy::mem_forget, | ||
clippy::unused_self, | ||
clippy::filter_map_next, | ||
clippy::needless_continue, | ||
clippy::needless_borrow, | ||
clippy::match_wildcard_for_single_variants, | ||
clippy::if_let_mutex, | ||
clippy::mismatched_target_os, | ||
clippy::await_holding_lock, | ||
clippy::match_on_vec_items, | ||
clippy::imprecise_flops, | ||
clippy::suboptimal_flops, | ||
clippy::lossy_float_literal, | ||
clippy::rest_pat_in_fully_bound_structs, | ||
clippy::fn_params_excessive_bools, | ||
clippy::exit, | ||
clippy::inefficient_to_string, | ||
clippy::linkedlist, | ||
clippy::macro_use_imports, | ||
clippy::option_option, | ||
clippy::verbose_file_reads, | ||
clippy::unnested_or_patterns, | ||
rust_2018_idioms, | ||
future_incompatible, | ||
nonstandard_style, | ||
missing_docs | ||
)] | ||
#![forbid(unsafe_code)] | ||
#![allow(incomplete_features)] | ||
#![feature(async_fn_in_trait)] | ||
#![feature(return_type_notation)] | ||
#![feature(impl_trait_projections)] | ||
#![allow(elided_lifetimes_in_paths, clippy::type_complexity)] | ||
#![cfg_attr(test, allow(clippy::float_cmp))] | ||
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))] | ||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[cfg(feature = "tokio")] | ||
pub mod tokio; | ||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |