-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add zino-files and zino-channel crates
- Loading branch information
Showing
28 changed files
with
303 additions
and
139 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
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,48 @@ | ||
[package] | ||
name = "zino-channel" | ||
description = "Cloud events and subscriptions for zino." | ||
version = "0.1.0" | ||
rust-version = "1.80" | ||
edition = "2021" | ||
license = "MIT" | ||
categories = ["asynchronous", "network-programming", "web-programming"] | ||
keywords = ["http", "web", "framework"] | ||
homepage = "https://github.com/zino-rs/zino" | ||
repository = "https://github.com/zino-rs/zino" | ||
documentation = "https://docs.rs/zino-channel" | ||
readme = "README.md" | ||
|
||
[features] | ||
flume = [ | ||
"dep:ahash", | ||
"dep:flume", | ||
"dep:futures", | ||
"dep:parking_lot", | ||
] | ||
|
||
[dependencies] | ||
serde_json = "1.0.133" | ||
|
||
[dependencies.ahash] | ||
version = "0.8.11" | ||
optional = true | ||
|
||
[dependencies.flume] | ||
version = "0.11.1" | ||
optional = true | ||
|
||
[dependencies.futures] | ||
version = "0.3.31" | ||
optional = true | ||
|
||
[dependencies.parking_lot] | ||
version = "0.12.3" | ||
optional = true | ||
|
||
[dependencies.serde] | ||
version = "1.0.216" | ||
features = ["derive"] | ||
|
||
[dependencies.zino-core] | ||
path = "../zino-core" | ||
version = "0.29.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[![github]](https://github.com/zino-rs/zino) | ||
[![crates-io]](https://crates.io/crates/zino-channel) | ||
[![docs-rs]](https://docs.rs/zino-channel) | ||
|
||
[github]: https://img.shields.io/badge/github-8da0cb?labelColor=555555&logo=github | ||
[crates-io]: https://img.shields.io/badge/crates.io-fc8d62?labelColor=555555&logo=rust | ||
[docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?labelColor=555555&logo=docs.rs | ||
|
||
Cloud events and subscriptions for [`zino`]. | ||
|
||
## Feature flags | ||
|
||
The following optional features are available: | ||
|
||
| Name | Description | Default? | | ||
|----------------------|--------------------------------------------------------|----------| | ||
| `flume` | Enables the message channel via [`flume`]. | No | | ||
|
||
[`zino`]: https://github.com/zino-rs/zino | ||
[`flume`]: https://crates.io/crates/flume |
2 changes: 1 addition & 1 deletion
2
zino-core/src/channel/cloud_event.rs → zino-channel/src/cloud_event.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
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,17 @@ | ||
#![cfg_attr(docsrs, feature(doc_auto_cfg))] | ||
#![doc = include_str!("../README.md")] | ||
#![doc(html_favicon_url = "https://zino.cc/assets/zino-logo.png")] | ||
#![doc(html_logo_url = "https://zino.cc/assets/zino-logo.svg")] | ||
#![forbid(unsafe_code)] | ||
|
||
mod cloud_event; | ||
mod subscription; | ||
|
||
pub use cloud_event::CloudEvent; | ||
pub use subscription::Subscription; | ||
|
||
#[cfg(feature = "flume")] | ||
mod flume; | ||
|
||
#[cfg(feature = "flume")] | ||
pub use flume::MessageChannel; |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -30,4 +30,4 @@ cfg_if::cfg_if! { | |
|
||
mod sha1; | ||
|
||
pub(crate) use sha1::checksum; | ||
pub use sha1::checksum; |
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
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
Oops, something went wrong.