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
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/src/proof/prover.rs
verkle-trie/src/proof/prover.rs
use super::{VerificationHint, VerkleProof}; use crate::{ constants::{CRS, PRECOMPUTED_WEIGHTS}, database::ReadOnlyHigherDb, errors::ProofCreationError, proof::opening_data::{OpeningData, Openings}, }; use ipa_multipoint::{ multiproof::{MultiPoint, ProverQuery}, transcript::Transcript, }; use ite...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/src/proof/stateless_updater.rs
verkle-trie/src/proof/stateless_updater.rs
use crate::constants::TWO_POW_128; use crate::{errors::VerificationError, group_to_field, proof::ExtPresent}; use banderwagon::{trait_defs::*, Element, Fr}; use ipa_multipoint::committer::Committer; use std::collections::{BTreeMap, HashSet}; use super::{UpdateHint, VerkleProof}; // TODO fix all panics and return Resul...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/src/proof/golang_proof_format.rs
verkle-trie/src/proof/golang_proof_format.rs
// This is just tech debt. The golang codebase should be reverted to make proofs opaque again // and the rest of the code should be handled by clients. use banderwagon::{CanonicalDeserialize, Element, Fr}; use ipa_multipoint::{ipa::IPAProof, multiproof::MultiPointProof}; use super::{ExtPresent, VerificationHint, Verk...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/src/proof/key_path_finder.rs
verkle-trie/src/proof/key_path_finder.rs
use crate::database::{Meta, ReadOnlyHigherDb}; use crate::trie::BranchId; // PathFinder is an algorithm to find the path to a given key // If the key is not found, this algorithm returns the path to the node where // the key would have been inserted. This gives the verifier enough information // to update the key. pub...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/src/proof/verifier.rs
verkle-trie/src/proof/verifier.rs
use super::VerkleProof; use crate::{ constants::TWO_POW_128, group_to_field, proof::{ExtPresent, UpdateHint}, }; use banderwagon::{trait_defs::*, Element, Fr}; use ipa_multipoint::multiproof::VerifierQuery; use std::collections::{BTreeMap, BTreeSet}; // TODO Document this better and refactor pub fn create_...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/src/database/default.rs
verkle-trie/src/database/default.rs
use super::{ generic::GenericBatchDB, memory_db::MemoryDb, BranchChild, BranchMeta, Flush, ReadOnlyHigherDb, StemMeta, WriteOnlyHigherDb, }; use crate::database::generic::GenericBatchWriter; use std::collections::HashMap; use verkle_db::{BareMetalDiskDb, BareMetalKVDb, BatchDB, BatchWriter}; // A convenient st...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/src/database/memory_db.rs
verkle-trie/src/database/memory_db.rs
use super::{BranchChild, Flush, ReadOnlyHigherDb, WriteOnlyHigherDb}; use crate::database::{BranchMeta, StemMeta}; use std::collections::HashMap; #[derive(Debug, Clone)] pub struct MemoryDb { pub leaf_table: HashMap<[u8; 32], [u8; 32]>, pub stem_table: HashMap<[u8; 31], StemMeta>, // TODO maybe change to u...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/src/database/meta.rs
verkle-trie/src/database/meta.rs
#![allow(clippy::identity_op)] #![allow(clippy::large_enum_variant)] use banderwagon::trait_defs::*; use banderwagon::{Element, Fr}; #[derive(Clone, Copy, PartialEq, Eq, Hash)] pub struct StemMeta { pub c_1: Element, pub hash_c1: Fr, pub c_2: Element, pub hash_c2: Fr, pub stem_commitment: Element...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/src/database/generic.rs
verkle-trie/src/database/generic.rs
use super::{BranchChild, BranchMeta, ReadOnlyHigherDb, StemMeta, WriteOnlyHigherDb}; use crate::from_to_bytes::{FromBytes, ToBytes}; use verkle_db::{BareMetalDiskDb, BareMetalKVDb, BatchDB, BatchWriter}; // The purpose of this file is to allows us to implement generic implementation for BatchWriter and BareMetalKVDb /...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/tests/golang_interop.rs
verkle-trie/tests/golang_interop.rs
use std::sync::Mutex; use once_cell::sync::Lazy; use verkle_trie::{database::memory_db::MemoryDb, Trie, TrieTrait, VerkleConfig}; pub static CONFIG: Lazy<Mutex<VerkleConfig<MemoryDb>>> = Lazy::new(|| Mutex::new(VerkleConfig::new(MemoryDb::new()))); // This is a fixed test, that checks whether the verkle trie log...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/tests/trie_fuzzer.rs
verkle-trie/tests/trie_fuzzer.rs
use std::sync::Mutex; use ipa_multipoint::committer::Committer; use once_cell::sync::Lazy; use verkle_trie::{database::memory_db::MemoryDb, Trie, TrieTrait, VerkleConfig}; pub static CONFIG: Lazy<Mutex<VerkleConfig<MemoryDb>>> = Lazy::new(|| Mutex::new(VerkleConfig::new(MemoryDb::new()))); #[test] fn test_vector...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/benches/benchmark_main.rs
verkle-trie/benches/benchmark_main.rs
use criterion::criterion_main; mod benchmarks; criterion_main! { benchmarks::insert_10k::benches, // benchmarks::edit_10k::benches, benchmarks::proof_10k::benches, }
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/benches/benchmarks/insert_10k.rs
verkle-trie/benches/benchmarks/insert_10k.rs
use crate::benchmarks::util::{generate_set_of_keys, KEYS_10K}; use criterion::BenchmarkId; use criterion::{black_box, criterion_group, BatchSize, Criterion}; use verkle_trie::database::memory_db::MemoryDb; use verkle_trie::trie::Trie; use verkle_trie::DefaultConfig; use verkle_trie::TrieTrait; fn insert_10k_from_10mil...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/benches/benchmarks/util.rs
verkle-trie/benches/benchmarks/util.rs
use once_cell::sync::Lazy; use sha2::{Digest, Sha256}; // pub static PRECOMPUTED_TABLE: Lazy<PrecomputeLagrange> = // Lazy::new(|| PrecomputeLagrange::precompute(&SRS.map(|point| point.into_affine()))); pub static KEYS_10K: Lazy<Vec<[u8; 32]>> = Lazy::new(|| generate_diff_set_of_keys(10_000).collect()); #[allo...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/benches/benchmarks/mod.rs
verkle-trie/benches/benchmarks/mod.rs
pub mod edit_10k; pub mod insert_10k; pub mod proof_10k; pub mod util;
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/benches/benchmarks/edit_10k.rs
verkle-trie/benches/benchmarks/edit_10k.rs
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-trie/benches/benchmarks/proof_10k.rs
verkle-trie/benches/benchmarks/proof_10k.rs
use crate::benchmarks::util::{generate_set_of_keys, KEYS_10K}; use criterion::BenchmarkId; use criterion::{black_box, criterion_group, BatchSize, Criterion}; use verkle_trie::database::memory_db::MemoryDb; use verkle_trie::trie::Trie; use verkle_trie::DefaultConfig; use verkle_trie::TrieTrait; fn proof_10k_from_10mil_...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-spec/src/parameters.rs
verkle-spec/src/parameters.rs
use ethereum_types::U256; // Parameters pub(crate) const VERSION_LEAF_KEY: U256 = U256::zero(); pub(crate) const BALANCE_LEAF_KEY: U256 = U256([1, 0, 0, 0]); pub(crate) const NONCE_LEAF_KEY: U256 = U256([2, 0, 0, 0]); pub(crate) const CODE_KECCAK_LEAF_KEY: U256 = U256([3, 0, 0, 0]); pub(crate) const CODE_SIZE_LEAF_KEY...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-spec/src/lib.rs
verkle-spec/src/lib.rs
pub mod code; pub mod header; pub mod storage; pub(crate) mod parameters; mod util; // TODO: specify the parts in the code where we assume VERKLE_WIDTH = 256; // TODO: expose type markers in verkle-trie, so we can ensure that none of them overlap // TODO: with the type markers in this crate. In particular, this crate...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-spec/src/code.rs
verkle-spec/src/code.rs
use ethereum_types::{H256, U256}; use crate::{ parameters::{CODE_OFFSET, VERKLE_NODE_WIDTH}, util::{hash_addr_int, swap_last_byte, zero_align_bytes}, Address32, Hasher, }; pub struct Code { code_chunk_tree_key: H256, } impl Code { pub fn new<H: Hasher>(address: Address32, chunk_id: U256) -> Code ...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-spec/src/header.rs
verkle-spec/src/header.rs
use ethereum_types::H256; use ethereum_types::U256; use crate::parameters::{ BALANCE_LEAF_KEY, CODE_KECCAK_LEAF_KEY, CODE_SIZE_LEAF_KEY, NONCE_LEAF_KEY, VERSION_LEAF_KEY, }; use crate::util::hash_addr_int; use crate::Hasher; use crate::{util::swap_last_byte, Address32}; pub struct Header { balance_tree_key: H...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-spec/src/storage.rs
verkle-spec/src/storage.rs
use ethereum_types::{H256, U256}; use crate::{ parameters::{CODE_OFFSET, HEADER_STORAGE_OFFSET, MAIN_STORAGE_OFFSET, VERKLE_NODE_WIDTH}, util::{hash_addr_int, swap_last_byte}, Address32, Hasher, }; pub struct Storage { storage_slot_tree_key: H256, } impl Storage { pub fn new<H: Hasher>(address: A...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-spec/src/util.rs
verkle-spec/src/util.rs
use ethereum_types::{H256, U256}; use crate::{parameters::VERKLE_NODE_WIDTH, Address32, Hasher}; #[must_use] pub(crate) fn swap_last_byte(mut hash: H256, byte: U256) -> H256 { let byte: u8 = byte .as_u32() .try_into() .expect("number cannot be represented as a byte"); let bytes = hash...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
crate-crypto/rust-verkle
https://github.com/crate-crypto/rust-verkle/blob/e27b8b4edf1992b4afa636c2fc7983bcc27ddb88/verkle-spec/tests/devnet6.rs
verkle-spec/tests/devnet6.rs
use anyhow::Result; use ark_serialize::CanonicalSerialize; use hex::FromHex; use keccak_hash::{keccak, KECCAK_EMPTY}; use once_cell::sync::Lazy; use serde::Deserialize; use std::{collections::HashMap, fs::File, io::BufReader, str::FromStr, sync::Mutex}; use verkle_spec::{ addr20_to_addr32, code::chunkify_code, Addr...
rust
Apache-2.0
e27b8b4edf1992b4afa636c2fc7983bcc27ddb88
2026-01-04T20:20:39.506404Z
false
freethinkel/tauri-nspopover-plugin
https://github.com/freethinkel/tauri-nspopover-plugin/blob/efdd92922d337d350d59d8cf20c821e24ca16b48/build.rs
build.rs
const COMMANDS: &[&str] = &["show_popover", "hide_popover", "is_popover_shown"]; fn main() { tauri_plugin::Builder::new(COMMANDS).build(); }
rust
MIT
efdd92922d337d350d59d8cf20c821e24ca16b48
2026-01-04T20:20:39.361853Z
false
freethinkel/tauri-nspopover-plugin
https://github.com/freethinkel/tauri-nspopover-plugin/blob/efdd92922d337d350d59d8cf20c821e24ca16b48/src/lib.rs
src/lib.rs
use objc2::rc::Retained; use objc2_app_kit::{NSPopover, NSStatusBarButton, NSWindow}; use objc2_foundation::NSRectEdge; use tauri::{ plugin::{Builder, TauriPlugin}, tray::TrayIcon, AppHandle, Manager, Runtime, State, WebviewWindow, }; use std::sync::Mutex; mod popover; use popover::PopoverController; pu...
rust
MIT
efdd92922d337d350d59d8cf20c821e24ca16b48
2026-01-04T20:20:39.361853Z
false
freethinkel/tauri-nspopover-plugin
https://github.com/freethinkel/tauri-nspopover-plugin/blob/efdd92922d337d350d59d8cf20c821e24ca16b48/src/popover.rs
src/popover.rs
use objc2::{msg_send, rc::Retained, runtime::Bool}; use objc2_app_kit::{NSColor, NSPopover, NSPopoverBehavior, NSView, NSViewController, NSWindow}; use objc2_foundation::MainThreadMarker; pub struct PopoverController { popover: Retained<NSPopover>, } impl PopoverController { pub fn new(window: &NSWindow) -> S...
rust
MIT
efdd92922d337d350d59d8cf20c821e24ca16b48
2026-01-04T20:20:39.361853Z
false
freethinkel/tauri-nspopover-plugin
https://github.com/freethinkel/tauri-nspopover-plugin/blob/efdd92922d337d350d59d8cf20c821e24ca16b48/src/action.rs
src/action.rs
use icrate::objc2::{ class, declare::ClassDecl, msg_send, msg_send_id, rc::{Allocated, Id}, runtime::{AnyClass, AnyObject, Sel}, sel, Encode, RefEncode, }; use std::fmt; use std::sync::Once; #[repr(C)] pub struct Object { _priv: PrivateMarker, } unsafe impl RefEncode for Object { cons...
rust
MIT
efdd92922d337d350d59d8cf20c821e24ca16b48
2026-01-04T20:20:39.361853Z
false
freethinkel/tauri-nspopover-plugin
https://github.com/freethinkel/tauri-nspopover-plugin/blob/efdd92922d337d350d59d8cf20c821e24ca16b48/example/src-tauri/build.rs
example/src-tauri/build.rs
fn main() { tauri_build::build() }
rust
MIT
efdd92922d337d350d59d8cf20c821e24ca16b48
2026-01-04T20:20:39.361853Z
false
freethinkel/tauri-nspopover-plugin
https://github.com/freethinkel/tauri-nspopover-plugin/blob/efdd92922d337d350d59d8cf20c821e24ca16b48/example/src-tauri/src/main.rs
example/src-tauri/src/main.rs
// Prevents additional console window on Windows in release, DO NOT REMOVE!! #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] use tauri::{ tray::{MouseButton, MouseButtonState, TrayIcon, TrayIconEvent}, ActivationPolicy, Manager, }; use tauri_plugin_nspopover::{AppExt, ToPopoverOptions, Windo...
rust
MIT
efdd92922d337d350d59d8cf20c821e24ca16b48
2026-01-04T20:20:39.361853Z
false
otavio/rsget
https://github.com/otavio/rsget/blob/a3cf767cff45087b40f2e75e7ca7701ef773524b/src/main.rs
src/main.rs
// Copyright (C) 2018, 2019, 2020 O.S. Systems Sofware LTDA // // SPDX-License-Identifier: Apache-2.0 use anyhow::anyhow; use clap::Parser; use indicatif::{ProgressBar, ProgressStyle}; use reqwest::{header, Client}; use std::path::Path; use tokio::{fs, io::AsyncWriteExt}; #[derive(Parser, Debug)] #[clap(author, versi...
rust
Apache-2.0
a3cf767cff45087b40f2e75e7ca7701ef773524b
2026-01-04T20:20:41.702478Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/src/shadow.rs
src/shadow.rs
use std::collections::HashMap; use std::str; use boo::Boo; use dom; use application::View; use renderer::{Command, Event, Update}; use tree::{self, Vertex}; /// Convert 'changeset' to list of commands to send to UI 'rendering' process fn commands<T>( old: Option<&dom::Object<T>>, dom: &dom::Object<T>, se...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/src/lib.rs
src/lib.rs
#![deny(trivial_casts, trivial_numeric_casts)] #![deny(unused_import_braces, unused_qualifications)] // #![deny(missing_docs)] // #![deny(unsafe_code, unstable_features)] // #![deny(missing_debug_implementations, missing_copy_implementations)] extern crate serde; #[macro_use] extern crate serde_derive; pub extern cra...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/src/renderer.rs
src/renderer.rs
use std::collections::HashMap; type Identifier = String; // TODO: `enum` for kind? #[derive(Serialize, Deserialize, Debug)] pub enum Update { Text(String), Attributes(HashMap<String, String>), } #[derive(Serialize, Deserialize, Debug)] pub enum Command { Create { id: Identifier, parent: ...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/src/application.rs
src/application.rs
use json; use sass; use web_view; use dom; use renderer; use shadow::Shadow; pub type Update<M, S> = fn(M, &S) -> M; pub type View<M, S> = fn(&M) -> dom::Object<S>; pub struct Application<M, S> { model: M, update: Update<M, S>, view: View<M, S>, style: Option<String>, } impl<M, S> Application<M, S...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/src/dom.rs
src/dom.rs
use std::fmt; use tree; pub type Element = String; #[derive(PartialEq, Debug)] pub struct Attribute(String, String); impl Attribute { pub fn raw(&self) -> (String, String) { match self { &Attribute(ref name, ref value) => (name.clone(), value.clone()), } } } pub struct Widget<S> ...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/src/boo.rs
src/boo.rs
use std::convert::AsRef; use std::ops::Deref; /// /// Borrowed or Owned /// Very similar to `std::borrow::Cow` but without requiring `ToOwned` (and therefore, `Clone`) /// pub enum Boo<'a, B: 'a> { Borrowed(&'a B), Owned(B), } impl<'a, B: 'a> AsRef<B> for Boo<'a, B> { fn as_ref(&self) -> &B { matc...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/src/tree/path.rs
src/tree/path.rs
use std::fmt; #[derive(Clone, Debug)] pub struct PathRef<'p> { path: &'p [usize], } #[derive(Clone, Debug)] pub struct Path { path: Vec<usize>, } impl Path { pub fn new() -> Self { Path { path: vec![0] } } pub fn from_vec(path: Vec<usize>) -> Self { Path { path } } pub f...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/src/tree/zipper.rs
src/tree/zipper.rs
pub enum Pair<T, U> { Left(T), Both(T, U), Right(U), } pub struct Zip<I, J> { i: I, j: J, } impl<I, J> Iterator for Zip<I, J> where I: Iterator, J: Iterator, { type Item = Pair<I::Item, J::Item>; fn next(&mut self) -> Option<Self::Item> { match (self.i.next(), self.j.next()...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/src/tree/mod.rs
src/tree/mod.rs
mod path; mod zipper; use std::collections::VecDeque; use self::zipper::{zip, Pair}; pub use self::path::Path; pub trait Vertex { fn children(&self) -> &[Self] where Self: Sized; fn find(&self, path: &Path) -> Option<&Self> where Self: Sized, { let path = path.raw(); ...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/hypertext/src/lib.rs
hypertext/src/lib.rs
extern crate proc_macro as pm; extern crate proc_macro2 as pm2; #[macro_use] extern crate quote; mod parser; #[proc_macro] pub fn hypertext(tokens: pm::TokenStream) -> pm::TokenStream { let tokens = tokens.to_string(); let dom = parser::parse(&tokens).unwrap(); dom.render().into() } impl parser::Elemen...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/hypertext/src/parser.rs
hypertext/src/parser.rs
use std; #[derive(Debug)] pub struct Attribute { pub name: String, pub block: String, } #[derive(Debug)] pub enum Element { Element { name: String, attributes: Vec<Attribute>, children: Vec<Element>, }, Text(String), Block(String), } type Result<T> = std::result::Resu...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/examples/words.rs
examples/words.rs
#![feature(proc_macro_non_items)] extern crate cedar; use cedar::hypertext; type Model = String; #[derive(PartialEq)] enum Message { NewContent(String), } fn update(_: Model, message: &Message) -> Model { match message { &Message::NewContent(ref content) => content.clone(), } } type Object = c...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/examples/field.rs
examples/field.rs
#![feature(proc_macro_non_items)] extern crate cedar; use cedar::hypertext; type Model = String; #[derive(PartialEq)] enum Message { NewContent(String), } fn update(_: Model, message: &Message) -> Model { match message { &Message::NewContent(ref content) => content.clone(), } } const STYLE: &'...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/examples/buttons.rs
examples/buttons.rs
#![feature(proc_macro_non_items)] extern crate cedar; use cedar::hypertext; type Model = i32; #[derive(PartialEq)] enum Message { Increment, Decrement, } fn update(model: Model, message: &Message) -> Model { match message { &Message::Increment => model + 1, &Message::Decrement => model ...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/examples/todo/build.rs
examples/todo/build.rs
extern crate cedar; fn main() { cedar::custom_style("src/style/style-todo.scss"); }
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
jtomschroeder/cedar
https://github.com/jtomschroeder/cedar/blob/1674097ba752cb3c3e86db119f9faab85c963ecb/examples/todo/src/main.rs
examples/todo/src/main.rs
#![feature(proc_macro)] #![feature(proc_macro_non_items)] extern crate cedar; use cedar::hypertext; type Entries = Vec<Entry>; struct Model { entries: Entries, visibility: String, field: String, uid: u32, } impl Model { fn empty() -> Self { Model { entries: Entries::new(), ...
rust
MIT
1674097ba752cb3c3e86db119f9faab85c963ecb
2026-01-04T20:20:46.962183Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/config_man.rs
src/config_man.rs
use anyhow::Result; use directories::ProjectDirs; use rand::RngCore; use reqwest::Client; use serde_json::json; use std::fs; use std::path::PathBuf; use toml_edit::{DocumentMut, Item, Value, Table}; use uuid::Uuid; use ring::aead::{self, Aad, LessSafeKey, Nonce}; use base64::{Engine as _, engine::general_purpose}; use...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/error.rs
src/error.rs
use core::fmt::Display; use std::fmt::{self, Formatter}; /// Custom error type for early exit #[derive(Debug)] pub struct SilentExit { pub code: u8, } impl Display for SilentExit { fn fmt(&self, _: &mut Formatter<'_>) -> fmt::Result { Ok(()) } }
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/main.rs
src/main.rs
mod cmd; mod error; mod toml; mod config_man; use std::env; use std::io::{self, Write}; use std::process::ExitCode; use std::fs; use clap::Parser; use crate::cmd::{Cmd, Execute}; use crate::error::SilentExit; use crate::config_man::{get_config_path, create_config}; #[tokio::main] pub async fn main() -> ExitCode { ...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/toml.rs
src/toml.rs
use serde::{Deserialize, Serialize}; use std::fs::{OpenOptions, read_to_string}; use std::io::Write; use std::path::Path; use std::collections::HashSet; use anyhow::Result; use toml_edit::{Array, DocumentMut, InlineTable, Item, Table, Value}; #[derive(Serialize, Deserialize, Debug)] struct Package { name: String,...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/config.rs
src/cmd/config.rs
use crate::cmd::{Execute, Config}; use crate::config_man::set_analytics; use anyhow::Result; impl Execute for Config { async fn execute(&self) -> Result<()> { if self.analytics.is_some() { set_analytics(self.analytics.unwrap())?; println!("Analytics set to: {}", self.analytics.unwra...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/dotf.rs
src/cmd/dotf.rs
use anyhow::Result; use std::fs; use std::path::{Path, PathBuf}; use std::io::Write; use crate::cmd::{Execute, Dotf}; impl Execute for Dotf { async fn execute(&self) -> Result<()> { // Clear the .f file if it already exists let top_module_file = Path::new(&self.path_to_top_module).file_name().and_...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/update.rs
src/cmd/update.rs
use anyhow::Result; use crate::cmd::{Execute, Update}; use crate::cmd::include::get_head_commit_hash; use crate::toml::{get_repo_links, add_top_module, remove_top_module}; use imara_diff::intern::InternedInput; use imara_diff::{diff, Algorithm, UnifiedDiffBuilder}; impl Execute for Update { async fn execute(&self...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/list.rs
src/cmd/list.rs
use anyhow::{Result, Context, anyhow}; use std::collections::HashSet; use std::process::Command; use crate::cmd::{Execute, List}; use tempfile::tempdir; const STD_LIB_URL: &str = "https://github.com/getinstachip/openchips"; impl Execute for List { async fn execute(&self) -> Result<()> { match list_verilog...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/include.rs
src/cmd/include.rs
use std::collections::HashSet; use std::env::current_dir; use std::path::{Path, PathBuf}; use std::{fs, process::Command}; use anyhow::{Context, Result}; use once_cell::sync::Lazy; use tree_sitter::{Node, Parser, Query, QueryCursor}; use crate::cmd::{Execute, Include}; use crate::toml::{add_dependency, add_top_module};...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/sim.rs
src/cmd/sim.rs
use anyhow::{Context, Result}; use std::process::Command; use std::env; use std::path::{Path, PathBuf}; use std::fs; use fastrand; use crate::cmd::{Execute, Sim}; use std::fs::File; use std::io::{BufRead, BufReader}; use fancy_regex::Regex; use walkdir::WalkDir; impl Execute for Sim { async fn execute(&self) -> Re...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/install.rs
src/cmd/install.rs
use anyhow::{Context, Result}; use std::process::Command; use std::path::Path; use std::env; use std::fs::OpenOptions; use std::io::Write; use crate::cmd::{Execute, Install}; impl Execute for Install { async fn execute(&self) -> Result<()> { match self.tool_name.as_str() { "verilator" => { ...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/upgrade.rs
src/cmd/upgrade.rs
use anyhow::Result; use std::process::Command; use crate::cmd::{Execute, Upgrade}; use crate::config_man::set_version; impl Execute for Upgrade { async fn execute(&self) -> Result<()> { println!("Upgrading VPM..."); upgrade_vpm()?; let version = get_latest_version()?; if !version.i...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/mod.rs
src/cmd/mod.rs
mod cmd; mod upgrade; mod include; mod update; mod remove; mod dotf; mod list; mod install; mod sim; mod docs; mod synth; mod run; mod load; mod config; use anyhow::Result; pub use crate::cmd::cmd::*; use crate::config_man::send_event; pub trait Execute { async fn execute(&self) -> Result<()>; } impl Execute ...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/run.rs
src/cmd/run.rs
use anyhow::Result; use crate::cmd::{Execute, Run}; impl Execute for Run { async fn execute(&self) -> Result<()> { Ok(()) } }
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/synth.rs
src/cmd/synth.rs
use anyhow::{Result, Context}; use std::path::PathBuf; use std::process::Command; use std::fs::File; use std::io::Write; use crate::cmd::{Execute, Synth}; impl Execute for Synth { async fn execute(&self) -> Result<()> { synthesize_design( &self.top_module_path, self.riscv, ...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/load.rs
src/cmd/load.rs
use anyhow::Result; use std::path::Path; use std::process::Command; use crate::cmd::{Execute, Load}; impl Execute for Load { async fn execute(&self) -> Result<()> { let top_module_path = Path::new(&self.top_module_path); let constraints_path = Path::new(&self.constraints_path); if self.ris...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/docs.rs
src/cmd/docs.rs
use anyhow::{Result, Context, anyhow}; use reqwest::Client; use std::path::PathBuf; use serde_json::json; use std::fs; use indicatif::{ProgressBar, ProgressStyle}; use std::process::{Command, Stdio}; use crate::cmd::{Execute, Docs}; use crate::config_man::{decrypt_docs_count, encrypt_docs_count}; impl Execute for Doc...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/remove.rs
src/cmd/remove.rs
use std::fs; use std::path::PathBuf; use std::io::{self, Write}; use anyhow::{Result, anyhow}; use crate::cmd::{Execute, Remove}; use crate::toml::{remove_top_module, get_repo_links}; impl Execute for Remove { async fn execute(&self) -> Result<()> { remove_module(&self.package_path)?; Ok(()) ...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
getinstachip/vpm
https://github.com/getinstachip/vpm/blob/03763cc40a2354d7a979a378e6830c1b4ceee44a/src/cmd/cmd.rs
src/cmd/cmd.rs
use clap::Parser; #[derive(Debug, Parser)] #[clap( about = "VPM - Verilog Package Manager", author, version, propagate_version = true, disable_help_subcommand = true, after_help = "Run 'vpm <COMMAND> --help' for more information on a specific command." )] pub enum Cmd { #[command( a...
rust
MIT
03763cc40a2354d7a979a378e6830c1b4ceee44a
2026-01-04T20:11:49.815734Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/build.rs
build.rs
fn main() { let mut config = prost_build::Config::new(); // Configure Prost to add #[derive(Serialize, Deserialize)] to all generated structs config.type_attribute( ".", "#[cfg_attr(feature = \"fuzz\", derive(serde::Serialize, serde::Deserialize))]", ); config .compile_protos...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/config.rs
src/config.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/lib.rs
src/lib.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/bandwidth.rs
src/bandwidth.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/error.rs
src/error.rs
// Copyright 2019 Parity Technologies (UK) Ltd. // Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation //...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/peer_id.rs
src/peer_id.rs
// Copyright 2018 Parity Technologies (UK) Ltd. // Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation //...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/types.rs
src/types.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/executor.rs
src/executor.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/addresses.rs
src/addresses.rs
// Copyright 2024 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/codec/unsigned_varint.rs
src/codec/unsigned_varint.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/codec/mod.rs
src/codec/mod.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/codec/identity.rs
src/codec/identity.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/yamux/control.rs
src/yamux/control.rs
// Copyright (c) 2018-2019 Parity Technologies (UK) Ltd. // // Licensed under the Apache License, Version 2.0 or MIT license, at your option. // // A copy of the Apache License, Version 2.0 is included in the software as // LICENSE-APACHE and a copy of the MIT license is included in the software // as LICENSE-MIT. You ...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/yamux/mod.rs
src/yamux/mod.rs
// Copyright (c) 2018-2019 Parity Technologies (UK) Ltd. // // Licensed under the Apache License, Version 2.0 or MIT license, at your option. // // A copy of the Apache License, Version 2.0 is included in the software as // LICENSE-APACHE and a copy of the MIT license is included in the software // as LICENSE-MIT. You ...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/mock/mod.rs
src/mock/mod.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/mock/substream.rs
src/mock/substream.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/utils/mod.rs
src/utils/mod.rs
// Copyright 2024 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/utils/futures_stream.rs
src/utils/futures_stream.rs
// Copyright 2024 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/types/protocol.rs
src/types/protocol.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/mod.rs
src/transport/mod.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/dummy.rs
src/transport/dummy.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/quic/config.rs
src/transport/quic/config.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/quic/listener.rs
src/transport/quic/listener.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/quic/connection.rs
src/transport/quic/connection.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/quic/mod.rs
src/transport/quic/mod.rs
// Copyright 2021 Parity Technologies (UK) Ltd. // Copyright 2022 Protocol Labs. // Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/quic/substream.rs
src/transport/quic/substream.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/tcp/config.rs
src/transport/tcp/config.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/tcp/connection.rs
src/transport/tcp/connection.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
true
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/tcp/mod.rs
src/transport/tcp/mod.rs
// Copyright 2020 Parity Technologies (UK) Ltd. // Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation //...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
true
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/tcp/substream.rs
src/transport/tcp/substream.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/manager/address.rs
src/transport/manager/address.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/manager/limits.rs
src/transport/manager/limits.rs
// Copyright 2024 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/manager/types.rs
src/transport/manager/types.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
false
paritytech/litep2p
https://github.com/paritytech/litep2p/blob/991aa12f60db41543735394bf71fba09332752f8/src/transport/manager/mod.rs
src/transport/manager/mod.rs
// Copyright 2023 litep2p developers // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish...
rust
MIT
991aa12f60db41543735394bf71fba09332752f8
2026-01-04T20:20:42.179941Z
true