repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/examples/condvar/src/main.rs | examples/condvar/src/main.rs | //#![feature(unboxed_closures)]
//#![feature(fn_traits)]
use std::{
thread,
time::Duration,
sync::{
Arc,
Mutex,
Condvar,
},
};
fn main() {
// Inside of our lock, spawn a new thread, and then wait for it to start.
let pair = Arc::new((Mutex::new(false), Condvar::new()));
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/examples/multi-threading/src/main.rs | examples/multi-threading/src/main.rs | //#![feature(unboxed_closures)]
//#![feature(fn_traits)]
use std::{
thread,
time::Duration,
};
fn main() {
// Now we do some work using multi threads
let mut joins = Vec::new();
for n in 1..10u32 {
joins.push(thread::spawn(move || {
println!("thread {} started", n);
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/examples/wasm64-example/src/main.rs | examples/wasm64-example/src/main.rs | fn main() {
println!("Hello World.");
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/examples/ws-client/src/main.rs | examples/ws-client/src/main.rs | use wasmer_bus_ws::prelude::*;
fn main() {
println!("creating web socket and opening");
let ws = SocketBuilder::new_str("wss://ws.postman-echo.com/raw")
.unwrap()
.blocking_open()
.unwrap();
let data = vec![ 1u8, 2u8, 3u8 ];
println!("sending data to socket");
let (mut... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/examples/sub-process/src/main.rs | examples/sub-process/src/main.rs | use wasmer_bus_process::prelude::*;
fn main() {
let mut task = Command::new("ls")
.stdin(Stdio::inherit())
.stderr(Stdio::inherit())
.stdout(Stdio::inherit())
.spawn()
.expect("ls command failed to start");
task.wait().unwrap();
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/examples/thread-local/src/main.rs | examples/thread-local/src/main.rs | use std::cell::Cell;
use std::thread;
use std::time::Duration;
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
enum TestEnum {
SecondEnum(u32),
FirstEnum,
ThirdEnum(u128)
}
thread_local! { static VAR1: Cell<TestEnum> = Cell::new(TestEnum::FirstEnum); }
fn xs() {
println!("VAR1 in thread... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/examples/tcp-listener/src/main.rs | examples/tcp-listener/src/main.rs | use std::net::TcpListener;
fn main() {
let listener = TcpListener::bind("127.0.0.1:7878").unwrap();
println!("Listening on {}", listener.local_addr().unwrap());
for stream in listener.incoming() {
let _stream = stream.unwrap();
println!("Connection established!");
}
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/examples/fuse/src/main.rs | examples/fuse/src/main.rs | use std::sync::Arc;
use std::sync::atomic::AtomicU64;
use std::sync::atomic::Ordering;
use wasmer_bus_fuse::api;
use wasmer_bus_fuse::api::FuseSimplified;
use wasmer_bus_fuse::prelude::*;
use wasmer_bus_fuse::api::FileSystemSimplified;
use wasmer_bus_fuse::api::FileIOSimplified;
use wasmer_bus_fuse::api::OpenedFileSim... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/stream.rs | ateweb/src/stream.rs | use core::task::{Context, Poll};
use std::io;
use std::net::SocketAddr;
use std::pin::Pin;
use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
use tokio::net::TcpStream;
use tokio_rustls::server::TlsStream;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use hyp... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/router.rs | ateweb/src/router.rs | use async_trait::async_trait;
use std::net::SocketAddr;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use http::*;
use hyper::upgrade::Upgraded;
use hyper_tungstenite::WebSocketStream;
use std::result::Result;
use ate::comms::StreamRouter;
use super::serv... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/builder.rs | ateweb/src/builder.rs | use std::net::{IpAddr, SocketAddr};
use std::sync::Arc;
use std::time::Duration;
use url::Url;
use ate::prelude::*;
use super::conf::*;
use super::server::*;
pub struct ServerBuilder {
pub(crate) remote: Url,
pub(crate) auth_url: Url,
pub(crate) conf: ServerConf,
pub(crate) web_master_key: Option<Enc... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/lib.rs | ateweb/src/lib.rs | pub mod builder;
pub mod conf;
pub mod error;
pub mod helper;
pub mod model;
pub mod opt;
pub mod server;
pub mod acceptor;
pub mod acme;
pub mod router;
pub mod stream;
pub use acceptor::*;
pub use acme::*;
pub use builder::ServerBuilder;
pub use conf::ServerConf;
pub use server::Server;
pub use stream::*;
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/conf.rs | ateweb/src/conf.rs | use std::net::SocketAddr;
use std::time::Duration;
use ate::prelude::*;
#[derive(Debug, Clone)]
pub struct ServerListen {
pub addr: SocketAddr,
pub tls: bool,
}
#[derive(Debug)]
pub struct ServerConf {
pub cfg_ate: ConfAte,
pub ttl: Duration,
pub listen: Vec<ServerListen>,
}
impl Default for Ser... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/error.rs | ateweb/src/error.rs | use ate::error::*;
use ate_files::error::FileSystemError;
use ate_files::error::FileSystemErrorKind;
use error_chain::error_chain;
use hyper::StatusCode;
error_chain! {
types {
WebServerError, WebServerErrorKind, WebServerResultExt, WebServerResult;
}
links {
LoadError(LoadError, LoadErrorK... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/helper.rs | ateweb/src/helper.rs | pub fn redirect_body(target: &str) -> String {
format!(
r#"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Permanent Redirect</title>
<meta http-equiv="refresh" content="0; url={}">
</head>
<body>
<p>
The document has be... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/acceptor.rs | ateweb/src/acceptor.rs | use super::acme::ACME_TLS_ALPN_NAME;
use core::task::{Context, Poll};
use std::future::Future;
use std::io;
use std::net::SocketAddr;
use std::pin::Pin;
use std::sync::Arc;
use tokio::net::TcpListener;
use tokio::net::TcpStream;
use tokio_rustls::TlsAcceptor;
#[allow(unused_imports, dead_code)]
use tracing::{debug, err... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/server.rs | ateweb/src/server.rs | use async_trait::async_trait;
use error_chain::bail;
use fxhash::FxHashMap;
use std::collections::hash_map::Entry as StdEntry;
use std::convert::Infallible;
use std::net::SocketAddr;
use std::ops::Deref;
use std::sync::Arc;
use std::sync::Weak;
use std::time::Duration;
use std::time::Instant;
use tokio::net::TcpListene... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | true |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/acme/security.rs | ateweb/src/acme/security.rs | use base64::URL_SAFE_NO_PAD;
use ring::digest::{digest, Digest, SHA256};
use ring::rand::SystemRandom;
use ring::signature::{EcdsaKeyPair, KeyPair};
use serde::Serialize;
use crate::error::*;
pub fn sign(
key: &EcdsaKeyPair,
kid: Option<&str>,
nonce: String,
url: &str,
payload: &str,
) -> Result<S... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/acme/acme.rs | ateweb/src/acme/acme.rs | use base64::URL_SAFE_NO_PAD;
use error_chain::bail;
use rcgen::{Certificate, CustomExtension, PKCS_ECDSA_P256_SHA256};
use ring::rand::SystemRandom;
use ring::signature::{EcdsaKeyPair, ECDSA_P256_SHA256_FIXED_SIGNING};
use serde::{Deserialize, Serialize};
use serde_json::json;
use std::sync::Arc;
use tokio_rustls::rust... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/acme/mod.rs | ateweb/src/acme/mod.rs | mod acme;
mod resolver;
mod security;
pub use acme::*;
pub use resolver::*;
pub use security::*;
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/acme/resolver.rs | ateweb/src/acme/resolver.rs | use super::acme::{
Account,
Auth,
Directory,
Identifier,
Order,
ACME_TLS_ALPN_NAME,
LETS_ENCRYPT_PRODUCTION_DIRECTORY,
//LETS_ENCRYPT_STAGING_DIRECTORY,
//PEBBLE_DIRECTORY,
};
use ate::prelude::*;
use bytes::Bytes;
use futures::future::try_join_all;
use fxhash::FxHashMap;
use rcgen::... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/model/web_conf.rs | ateweb/src/model/web_conf.rs | use fxhash::FxHashMap;
use serde::*;
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct WebConf {
/// Forces the host to be redirected to a new URL
#[serde(default)]
pub redirect: Option<String>,
/// Hosts the ATE web sockets and other end-points such as HTTP on this site
#[serde(default)]
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/model/mod.rs | ateweb/src/model/mod.rs | mod web_conf;
pub use web_conf::*;
pub const WEB_CONF_FILES: &'static str = ".conf/";
pub const WEB_CONF_FILES_CONF: &'static str = ".conf/web.yaml";
pub const WEB_CONF_FILES_WEB_CERT: &'static str = ".conf/cert.pem";
pub const WEB_CONF_FILES_WEB_KEY: &'static str = ".conf/key.pem";
pub const WEB_CONF_FILES_ALPN_CERT... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/opt/all.rs | ateweb/src/opt/all.rs | use std::net::IpAddr;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use url::Url;
use clap::Parser;
/// Runs a web server that will serve content from a Wasmer file system
#[derive(Parser)]
pub struct OptsAll {
/// IP address that the datachain server will isten... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/opt/core.rs | ateweb/src/opt/core.rs | use std::net::IpAddr;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use url::Url;
use clap::Parser;
use super::OptsAuth;
#[derive(Parser)]
#[clap(version = "1.6", author = "John S. <johnathan.sharratt@gmail.com>")]
pub struct Opts {
/// Sets the level of log ve... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/opt/auth.rs | ateweb/src/opt/auth.rs | use clap::Parser;
use std::net::IpAddr;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
/// Runs the login authentication and authorization server
#[derive(Parser)]
pub struct OptsAuth {
/// Optional list of the nodes that make up this cluster
#[clap(long)]
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/opt/mod.rs | ateweb/src/opt/mod.rs | mod all;
mod core;
mod web;
mod auth;
pub use self::core::*;
pub use all::*;
pub use web::*;
pub use auth::*; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/opt/web.rs | ateweb/src/opt/web.rs | use std::net::IpAddr;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use url::Url;
use clap::Parser;
/// Runs a web server that will serve content from a Wasmer file system
#[derive(Parser)]
pub struct OptsWeb {
/// IP address that the web server will isten on
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/ateweb/src/bin/ateweb.rs | ateweb/src/bin/ateweb.rs | use std::time::Duration;
use ate::utils::load_node_list;
use wasmer_auth::flow::ChainFlow;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use clap::Parser;
use ate::prelude::*;
use wasmer_auth::helper::*;
use ateweb::opt::*;
use ateweb::*;
#[tokio::main]
async fn ma... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-term/build.rs | wasmer-term/build.rs | extern crate build_deps;
fn main() {
#[cfg(feature = "embedded_files")]
build_deps::rerun_if_changed_paths( "public/bin/*" ).unwrap();
#[cfg(feature = "embedded_files")]
build_deps::rerun_if_changed_paths( "public/*" ).unwrap();
#[cfg(feature = "embedded_files")]
build_deps::rerun_if_changed_pa... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-term/src/lib.rs | wasmer-term/src/lib.rs | pub mod system;
pub mod utils;
pub mod ws;
pub use wasmer_os;
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-term/src/system.rs | wasmer-term/src/system.rs | use async_trait::async_trait;
#[cfg(feature = "embedded_files")]
use include_dir::{include_dir, Dir};
use wasmer_os::wasmer::{Module, Store};
use wasmer_os::wasmer::vm::{VMMemory, VMSharedMemory};
use wasmer_os::wasmer_wasi::WasiThreadError;
use std::cell::RefCell;
use std::convert::TryFrom;
use std::future::Future;
us... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-term/src/utils.rs | wasmer-term/src/utils.rs | #![allow(unused_imports)]
use tracing::metadata::LevelFilter;
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use tracing_subscriber::fmt::SubscriberBuilder;
use tracing_subscriber::EnvFilter;
#[cfg(unix)]
use {
libc::{
c_int, tcsetattr, termios, ECHO, ECHONL, ICANON, ICRNL, IEXTEN,... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-term/src/ws.rs | wasmer-term/src/ws.rs | use async_trait::async_trait;
use futures::stream::SplitSink;
use futures::stream::SplitStream;
use futures::SinkExt;
use futures_util::StreamExt;
use std::sync::Arc;
use std::sync::Mutex;
use wasmer_os::api::System;
use wasmer_os::api::SystemAbiExt;
use wasmer_os::api::WebSocketAbi;
use tokio::net::TcpStream;
use toki... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-term/src/bin/wasmer-terminal.rs | wasmer-term/src/bin/wasmer-terminal.rs | #![allow(unused_imports)]
use clap::Parser;
use raw_tty::GuardMode;
use std::io::Read;
use std::sync::Arc;
use wasmer_os::api::*;
use wasmer_os::console::Console;
use tokio::io;
use tokio::select;
use tokio::sync::watch;
use wasmer_term::wasmer_os::bin_factory::CachedCompiledModules;
use wasmer_term::utils::*;
use trac... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/misc.rs | lib/src/misc.rs | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false | |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/event.rs | lib/src/event.rs | use bytes::Bytes;
use crate::crypto::{AteHash, DoubleHash};
use super::error::*;
use super::header::*;
use super::meta::*;
use super::spec::*;
pub use super::spec::LazyData;
/// Represents the raw bytes that can describe what the event is
#[derive(Debug, Clone)]
pub struct EventHeaderRaw {
pub meta_hash: super:... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/prelude.rs | lib/src/prelude.rs | pub use crate::compact::CompactMode;
pub use crate::conf::ConfAte as AteConfig;
pub use crate::conf::ConfAte;
pub use crate::conf::ConfMesh;
pub use crate::conf::ConfiguredFor;
pub use crate::error::*;
pub use crate::header::PrimaryKey;
pub use crate::comms::Metrics as ChainMetrics;
pub use crate::comms::Throttle as C... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/engine.rs | lib/src/engine.rs | #![allow(unused_imports)]
use cooked_waker::*;
use fxhash::FxHashMap;
use once_cell::sync::Lazy;
use pin_project_lite::pin_project;
use std::cell::RefCell;
use std::collections::VecDeque;
use std::future::Future;
use std::ops::DerefMut;
use std::pin::Pin;
use std::sync::atomic::*;
use std::sync::Arc;
use std::sync::Mut... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/lib.rs | lib/src/lib.rs | #![cfg_attr(
not(debug_assertions),
allow(dead_code, unused_imports, unused_variables)
)]
#![warn(unused_extern_crates)]
/// You can change the log file format with these features
/// - feature = "use_version1"
/// - feature = "use_version2"
pub const LOG_VERSION: spec::EventVersion = spec::EventVersion::V2;
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/index.rs | lib/src/index.rs | use fxhash::FxHashMap;
use fxhash::FxHashSet;
use multimap::MultiMap;
use super::error::*;
use super::event::*;
use super::header::*;
use super::meta::*;
use super::sink::*;
use super::time::*;
pub trait EventIndexer
where
Self: EventSink + Send + Sync + std::fmt::Debug,
{
fn rebuild(&mut self, _data: &Vec<Ev... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/signature.rs | lib/src/signature.rs | #[allow(unused_imports)]
use crate::crypto::{AteHash, DoubleHash, EncryptedPrivateKey, PublicSignKey};
#[allow(unused_imports)]
use crate::session::{AteSession, AteSessionKeyCategory, AteSessionProperty};
use crate::spec::*;
use crate::utils::vec_deserialize;
use crate::utils::vec_serialize;
use error_chain::bail;
use ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/transform.rs | lib/src/transform.rs | use super::crypto::*;
use super::error::*;
use super::meta::*;
use super::session::*;
use super::transaction::TransactionMetadata;
use bytes::{Buf, Bytes};
use snap::read::FrameDecoder;
use snap::read::FrameEncoder;
pub trait EventDataTransformer: Send + Sync {
/// Callback when data is stored in the event
fn ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/anti_replay.rs | lib/src/anti_replay.rs | #![allow(unused_imports)]
use std::sync::Arc;
use tracing::{debug, error, info};
use crate::crypto::AteHash;
use fxhash::FxHashSet;
use super::lint::EventMetadataLinter;
use super::sink::EventSink;
use super::transform::EventDataTransformer;
use super::validator::EventValidator;
use super::error::*;
use super::event... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/lint.rs | lib/src/lint.rs | use crate::session::AteSession;
use std::sync::Arc;
use super::error::*;
use super::event::*;
use super::meta::*;
use super::transaction::*;
pub struct LintData<'a> {
pub data: &'a EventWeakData,
pub header: EventHeader,
}
pub trait EventMetadataLinter: Send + Sync {
/// Called just before the metadata i... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dns.rs | lib/src/dns.rs | #![allow(unused_imports)]
use std::net::SocketAddr;
use std::net::ToSocketAddrs;
#[cfg(feature = "enable_full")]
use tokio::net::TcpStream as TokioTcpStream;
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::conf::ConfAte;
use crate::engine::TaskEngine;
use {
trust_dns_client::cl... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/header.rs | lib/src/header.rs | use std::rc::Rc;
#[allow(unused_imports)]
use super::meta::*;
#[allow(unused_imports)]
use fastrand::u64;
pub use ate_crypto::spec::PrimaryKey;
pub(crate) struct PrimaryKeyScope {
pop: Option<PrimaryKey>,
_negative: Rc<()>,
}
impl PrimaryKeyScope {
pub fn new(key: PrimaryKey) -> Self {
PrimaryKe... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/sink.rs | lib/src/sink.rs | use std::sync::Arc;
use super::error::*;
use super::event::*;
use super::transaction::ConversationSession;
pub trait EventSink {
fn feed(
&mut self,
_header: &EventHeader,
_conversation: Option<&Arc<ConversationSession>>,
) -> Result<(), SinkError> {
Ok(())
}
fn reset(... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/loader.rs | lib/src/loader.rs | use async_trait::async_trait;
use tokio::sync::mpsc;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::error::*;
use crate::event::*;
use crate::redo::LogLookup;
#[derive(Debug, Clone)]
pub struct LoadData {
pub(crate) lookup: LogLookup,
pub header: E... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/validator.rs | lib/src/validator.rs | use std::sync::Arc;
use super::crypto::*;
use super::error::*;
use super::event::*;
use super::meta::*;
use super::signature::MetaSignature;
use super::transaction::*;
use crate::spec::TrustMode;
#[derive(Debug)]
pub enum ValidationResult {
Deny,
Allow,
#[allow(dead_code)]
Abstain,
}
pub trait EventV... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/pipe.rs | lib/src/pipe.rs | use super::error::*;
use super::transaction::*;
use crate::chain::ChainWork;
use crate::header::PrimaryKey;
#[allow(unused_imports)]
use crate::meta::*;
use async_trait::async_trait;
use std::sync::Arc;
use tokio::sync::mpsc;
use bytes::Bytes;
use crate::crypto::AteHash;
pub enum ConnectionStatusChange {
Disconne... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/single.rs | lib/src/single.rs | use std::sync::Arc;
use std::sync::RwLock as StdRwLock;
use tokio::sync::RwLock;
use tokio::sync::RwLockWriteGuard;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use super::chain::*;
use crate::spec::TrustMode;
/// Represents an exclusive lock on a chain-of-trust th... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/multi.rs | lib/src/multi.rs | use std::sync::RwLock as StdRwLock;
#[allow(unused_imports)]
use std::sync::{Arc, Weak};
use std::time::Duration;
use tokio::sync::RwLock;
use derivative::*;
use error_chain::bail;
use crate::event::EventStrongData;
use crate::session::AteSession;
use super::chain::*;
use super::error::*;
use super::header::*;
use su... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/transaction.rs | lib/src/transaction.rs | #![allow(unused_imports)]
use crate::meta::MetaParent;
use fxhash::FxHashMap;
use fxhash::FxHashSet;
use rcu_cell::RcuCell;
use std::sync::Arc;
use std::sync::RwLock as StdRwLock;
use std::time::Duration;
use tokio::sync::mpsc;
use super::crypto::AteHash;
use super::error::*;
use super::event::*;
use super::header::*;... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/spec.rs | lib/src/spec.rs | use num_enum::IntoPrimitive;
use num_enum::TryFromPrimitive;
use serde::{Deserialize, Serialize};
use std::convert::TryFrom;
use super::error::*;
use super::crypto::AteHash;
use async_trait::async_trait;
use tokio::io::ErrorKind;
pub use ate_crypto::SerializationFormat;
#[derive(Serialize, Deserialize, Debug, Clone,... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/plugin.rs | lib/src/plugin.rs | use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::lint::EventMetadataLinter;
use crate::transform::EventDataTransformer;
use super::crypto::*;
use super::error::*;
use super::event::*;
use super::sink::*;
use super::transaction::ConversationSession;
use super::validator:... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/protected_async.rs | lib/src/chain/protected_async.rs | use error_chain::bail;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::error::*;
use crate::event::*;
use crate::redo::LogWritable;
use crate::transaction::*;
use fxhash::FxHashSet;
use multimap::MultiMap;
use std::ops::*;
use std::sync::Arc;
use std::sync:... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/compact.rs | lib/src/chain/compact.rs | use btreemultimap::BTreeMultiMap;
use std::sync::Arc;
use std::sync::RwLock as StdRwLock;
use tokio::sync::RwLock;
#[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use super::*;
use crate::compact::*;
use crate::error::*;
use crate::index::*;
use crate::multi::ChainMultiUser;
use crate::pipe::E... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/inbox_pipe.rs | lib/src/chain/inbox_pipe.rs | use tokio::sync::broadcast;
use error_chain::bail;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use async_trait::async_trait;
use fxhash::FxHashSet;
use std::sync::Arc;
use std::sync::Mutex as StdMutex;
use bytes::Bytes;
use tokio::sync::RwLock;
use super::workers:... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/core.rs | lib/src/chain/core.rs | use std::sync::Mutex as StdMutex;
use std::time::Duration;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use derivative::*;
use crate::error::*;
use crate::comms::Metrics;
use crate::comms::NodeId;
use crate::comms::Throttle;
use crate::transaction::*;
use std::syn... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/listener.rs | lib/src/chain/listener.rs | #[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::event::*;
use tokio::sync::mpsc;
#[derive(Debug)]
pub(crate) struct ChainListener {
pub(crate) id: u64,
pub(crate) sender: mpsc::Sender<EventWeakData>,
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/mod.rs | lib/src/chain/mod.rs | mod backup;
mod compact;
mod core;
mod inbox_pipe;
mod listener;
mod new;
mod protected_async;
mod protected_sync;
#[cfg(feature = "enable_rotate")]
mod rotate;
mod workers;
pub use self::core::*;
pub use compact::*;
pub(crate) use listener::*;
pub use new::*;
pub(crate) use protected_async::*;
pub(crate) use protecte... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/backup.rs | lib/src/chain/backup.rs | #[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::error::*;
use super::*;
impl<'a> Chain {
pub async fn backup(&'a self, include_active_files: bool) -> Result<(), SerializationError> {
let delayed_operations = {
let mut single = self.... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/rotate.rs | lib/src/chain/rotate.rs | #[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::error::*;
use crate::spec::*;
use crate::trust::ChainHeader;
use super::*;
impl<'a> Chain {
#[cfg(feature = "enable_rotate")]
pub async fn rotate(&'a self) -> Result<(), SerializationError> {
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/workers.rs | lib/src/chain/workers.rs | #[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::chain::Chain;
use crate::compact::*;
use crate::engine::TaskEngine;
use crate::error::*;
use crate::pipe::*;
use crate::time::*;
use crate::transaction::TransactionScope;
use crate::transaction::*;
use std::sy... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/protected_sync.rs | lib/src/chain/protected_sync.rs | use error_chain::bail;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::error::*;
use crate::event::*;
use crate::index::*;
use crate::plugin::*;
use crate::transaction::*;
use crate::validator::*;
use std::sync::Arc;
use crate::lint::*;
use crate::service:... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/chain/new.rs | lib/src/chain/new.rs | #![allow(unused_imports)]
use error_chain::bail;
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use tracing_futures::Instrument;
use btreemultimap::BTreeMultiMap;
use multimap::MultiMap;
use tokio::sync::broadcast;
use crate::compact::*;
use crate::conf::*;
use crate::error::*;
use crate::in... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/service/notify.rs | lib/src/service/notify.rs | use std::sync::Arc;
use tokio::sync::mpsc;
#[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::error::*;
use crate::header::*;
use super::*;
pub(crate) enum NotifyWho {
Sender(mpsc::Sender<PrimaryKey>),
Service(Arc<dyn Service>),
}
impl std::fmt::Debug for NotifyWho {
fn fmt(&se... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/service/chain_invoke.rs | lib/src/service/chain_invoke.rs | use error_chain::bail;
use serde::{de::DeserializeOwned, Serialize};
#[allow(unused_imports)]
use std::ops::Deref;
use std::sync::Arc;
use std::time::Duration;
use tokio::select;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::chain::*;
use crate::dio::*;
us... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/service/tests.rs | lib/src/service/tests.rs | #![cfg(test)]
use serde::{Deserialize, Serialize};
use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::error::*;
use crate::session::*;
#[derive(Clone, Serialize, Deserialize)]
struct Ping {
msg: String,
}
#[derive(Serialize, Deserializ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/service/service_hook.rs | lib/src/service/service_hook.rs | use async_trait::async_trait;
use bytes::Bytes;
use error_chain::bail;
use fxhash::FxHashSet;
use std::ops::Deref;
use std::sync::{Arc, Weak};
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::chain::*;
use crate::dio::row::RowData;
use crate::dio::row::RowHea... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/service/service_handler.rs | lib/src/service/service_handler.rs | use async_trait::async_trait;
use bytes::Bytes;
use serde::{de::DeserializeOwned, Serialize};
use std::future::Future;
use std::marker::PhantomData;
use std::sync::Arc;
use tokio::sync::Mutex;
#[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::error::*;
use crate::spec::SerializationFormat;
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/service/service.rs | lib/src/service/service.rs | use async_trait::async_trait;
use serde::{de::DeserializeOwned, Serialize};
use std::future::Future;
use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::chain::Chain;
use crate::error::*;
use crate::event::*;
use crate::header::*;
use crate::service::ServiceHook;
use crate:... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/service/helper.rs | lib/src/service/helper.rs | use std::sync::Arc;
use std::sync::RwLockReadGuard as StdRwLockReadGuard;
use std::sync::Weak;
use tokio::sync::mpsc;
#[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::chain::*;
use crate::header::*;
use crate::{error::*, event::*};
use super::*;
pub(crate) fn callback_events_prepare(
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/service/mod.rs | lib/src/service/mod.rs | pub mod chain_invoke;
pub mod chain_sniffer;
pub mod helper;
pub mod notify;
pub mod service;
pub mod service_handler;
pub mod service_hook;
pub mod tests;
pub(crate) use chain_sniffer::*;
pub(crate) use helper::*;
pub(crate) use notify::*;
pub use chain_invoke::*;
pub use service::*;
pub use service_handler::*;
pub ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/service/chain_sniffer.rs | lib/src/service/chain_sniffer.rs | use tokio::sync::mpsc;
#[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::event::*;
use crate::header::*;
use super::*;
pub(crate) struct ChainSniffer {
pub(crate) id: u64,
pub(crate) filter: Box<dyn Fn(&EventWeakData) -> bool + Send + Sync>,
pub(crate) notify: mpsc::Sender<Prim... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/commit_error.rs | lib/src/error/commit_error.rs | use error_chain::error_chain;
error_chain! {
types {
CommitError, CommitErrorKind, ResultExt, Result;
}
links {
CommsError(super::CommsError, super::CommsErrorKind);
ValidationError(super::ValidationError, super::ValidationErrorKind);
TransformError(super::TransformError, su... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/compact_error.rs | lib/src/error/compact_error.rs | use error_chain::error_chain;
use tokio::sync::broadcast;
use tokio::sync::watch;
error_chain! {
types {
CompactError, CompactErrorKind, ResultExt, Result;
}
links {
SinkError(super::SinkError, super::SinkErrorKind);
TimeError(super::TimeError, super::TimeErrorKind);
Seriali... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/lint_error.rs | lib/src/error/lint_error.rs | use error_chain::error_chain;
use crate::crypto::AteHash;
error_chain! {
types {
LintError, LintErrorKind, ResultExt, Result;
}
links {
TrustError(super::TrustError, super::TrustErrorKind);
TimeError(super::TimeError, super::TimeErrorKind);
SerializationError(super::Seriali... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/load_error.rs | lib/src/error/load_error.rs | use error_chain::error_chain;
use rmp_serde::decode::Error as RmpDecodeError;
use rmp_serde::encode::Error as RmpEncodeError;
use crate::crypto::AteHash;
use crate::header::PrimaryKey;
error_chain! {
types {
LoadError, LoadErrorKind, ResultExt, Result;
}
links {
SerializationError(super::S... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/ate_error.rs | lib/src/error/ate_error.rs | use error_chain::error_chain;
error_chain! {
types {
AteError, AteErrorKind, ResultExt, Result;
}
links {
BusError(super::BusError, super::BusErrorKind);
ChainCreationError(super::ChainCreationError, super::ChainCreationErrorKind);
CommitError(super::CommitError, super::Comm... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/transform_error.rs | lib/src/error/transform_error.rs | use error_chain::error_chain;
error_chain! {
types {
TransformError, TransformErrorKind, ResultExt, Result;
}
links {
CryptoError(super::CryptoError, super::CryptoErrorKind);
TrustError(super::TrustError, super::TrustErrorKind);
}
foreign_links {
IO(std::io::Error);
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/trust_error.rs | lib/src/error/trust_error.rs | use error_chain::error_chain;
use crate::header::PrimaryKey;
error_chain! {
types {
TrustError, TrustErrorKind, ResultExt, Result;
}
links {
TimeError(super::TimeError, super::TimeErrorKind);
}
errors {
NoAuthorizationWrite(type_code: String, key: PrimaryKey, write: crate::... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/invoke_error.rs | lib/src/error/invoke_error.rs | use error_chain::error_chain;
error_chain! {
types {
InvokeError, InvokeErrorKind, ResultExt, Result;
}
links {
LoadError(super::LoadError, super::LoadErrorKind);
SerializationError(super::SerializationError, super::SerializationErrorKind);
CommitError(super::CommitError, su... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/time_error.rs | lib/src/error/time_error.rs | use chrono::DateTime;
use chrono::Utc;
use error_chain::error_chain;
use std::time::SystemTime;
use std::time::SystemTimeError;
error_chain! {
types {
TimeError, TimeErrorKind, ResultExt, Result;
}
foreign_links {
IO(std::io::Error);
SystemTimeError(SystemTimeError);
}
erro... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/mod.rs | lib/src/error/mod.rs | pub mod ate_error;
pub mod bus_error;
pub mod chain_creation_error;
pub mod commit_error;
pub mod comms_error;
pub mod compact_error;
pub mod invoke_error;
pub mod lint_error;
pub mod load_error;
pub mod lock_error;
pub mod process_error;
pub mod sink_error;
pub mod time_error;
pub mod transform_error;
pub mod trust_er... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/sink_error.rs | lib/src/error/sink_error.rs | use error_chain::error_chain;
use crate::crypto::AteHash;
error_chain! {
types {
SinkError, SinkErrorKind, ResultExt, Result;
}
links {
TrustError(super::TrustError, super::TrustErrorKind);
}
errors {
MissingPublicKey(hash: AteHash) {
description("the public key... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/lock_error.rs | lib/src/error/lock_error.rs | use error_chain::error_chain;
error_chain! {
types {
LockError, LockErrorKind, ResultExt, Result;
}
links {
SerializationError(super::SerializationError, super::SerializationErrorKind);
LintError(super::LintError, super::LintErrorKind);
}
errors {
CommitError(err: St... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/process_error.rs | lib/src/error/process_error.rs | #[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use super::*;
#[derive(Debug, Default)]
pub struct ProcessError {
pub sink_errors: Vec<SinkError>,
pub validation_errors: Vec<ValidationError>,
}
impl ProcessError {
pub fn has_errors(&self) -> bool {
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/comms_error.rs | lib/src/error/comms_error.rs | use error_chain::error_chain;
use rmp_serde::decode::Error as RmpDecodeError;
use serde_json::Error as JsonError;
use tokio::sync::mpsc;
use crate::crypto::KeySize;
error_chain! {
types {
CommsError, CommsErrorKind, ResultExt, Result;
}
links {
SerializationError(super::SerializationError,... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/chain_creation_error.rs | lib/src/error/chain_creation_error.rs | use error_chain::error_chain;
error_chain! {
types {
ChainCreationError, ChainCreationErrorKind, ResultExt, Result;
}
links {
CompactError(super::CompactError, super::CompactErrorKind);
TimeError(super::TimeError, super::TimeErrorKind);
CommsError(super::CommsError, super::C... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/bus_error.rs | lib/src/error/bus_error.rs | use error_chain::error_chain;
error_chain! {
types {
BusError, BusErrorKind, ResultExt, Result;
}
links {
LoadError(super::LoadError, super::LoadErrorKind);
SerializationError(super::SerializationError, super::SerializationErrorKind);
LockError(super::LockError, super::LockE... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/error/validation_error.rs | lib/src/error/validation_error.rs | use error_chain::error_chain;
error_chain! {
types {
ValidationError, ValidationErrorKind, ResultExt, Result;
}
links {
TrustError(super::TrustError, super::TrustErrorKind);
TimeError(super::TimeError, super::TimeErrorKind);
}
errors {
Denied(reason: String) {
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/flow/mod.rs | lib/src/flow/mod.rs | #![allow(unused_imports)]
use async_trait::async_trait;
pub mod basic;
use crate::{crypto::EncryptKey, session::AteSessionUser};
use super::chain::Chain;
use super::chain::ChainKey;
use super::conf::ChainBuilder;
use super::conf::ConfAte;
use super::crypto::PrivateSignKey;
use super::crypto::PublicSignKey;
use super::... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/flow/basic.rs | lib/src/flow/basic.rs | #![allow(unused_imports)]
use async_trait::async_trait;
use std::sync::Arc;
use tracing::{debug, error, info};
use super::OpenAction;
use super::OpenFlow;
use crate::chain::Chain;
use crate::chain::ChainKey;
use crate::conf::ChainBuilder;
use crate::conf::ConfAte;
use crate::crypto::AteHash;
use crate::crypto::Encrypt... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/stream.rs | lib/src/comms/stream.rs | use crate::crypto::InitializationVector;
use crate::engine::timeout as tokio_timeout;
use bytes::BytesMut;
use error_chain::bail;
use std::io;
use std::ops::DerefMut;
use std::collections::VecDeque;
use std::fs::File;
use std::pin::Pin;
use std::task::Context;
use std::task::Poll;
use std::net::SocketAddr;
use std::res... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/test.rs | lib/src/comms/test.rs | #![allow(unused_imports)]
#[cfg(feature = "enable_server")]
use super::Listener;
use super::MeshConfig;
use crate::comms::Metrics;
use crate::comms::NodeId;
use crate::comms::PacketData;
use crate::comms::PacketWithContext;
#[cfg(feature = "enable_server")]
use crate::comms::ServerProcessor;
use crate::comms::Throttle;... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/throttle.rs | lib/src/comms/throttle.rs | #[derive(Debug, Clone, Default)]
pub struct Throttle {
pub download_per_second: Option<u64>,
pub upload_per_second: Option<u64>,
pub delete_only: bool,
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/packet.rs | lib/src/comms/packet.rs | #![allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use tokio::sync::mpsc;
use crate::comms::*;
use crate::error::*;
use crate::spec::*;
use bytes::Bytes;
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use std::sync::Arc;
#[derive(Debug, Clone)]
pub struct P... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/router.rs | lib/src/comms/router.rs | use async_trait::async_trait;
use error_chain::bail;
use std::net::SocketAddr;
use std::ops::DerefMut;
use tokio::sync::Mutex;
use tokio::io::AsyncRead;
use tokio::io::AsyncWrite;
#[cfg(feature = "enable_full")]
use tokio::net::TcpStream;
use std::sync::Arc;
use std::time::Duration;
#[allow(unused_imports, dead_code)]
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.