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/wasmer-deploy-cli/src/bus/server.rs
wasmer-deploy-cli/src/bus/server.rs
#![allow(unused_imports, dead_code)] use async_trait::async_trait; use ate::loader::DummyLoader; use ate::prelude::*; use ate::utils::LoadProgress; use wasmer_auth::prelude::*; use ate_files::codes::*; use ate_files::prelude::*; use derivative::*; use std::io::Write; use std::sync::Arc; use std::time::Duration; #[allow...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/bus/main.rs
wasmer-deploy-cli/src/bus/main.rs
#![allow(unused_imports, dead_code)] use crate::opt::OptsBus; use ate::prelude::*; use wasmer_auth::prelude::*; use ate_files::codes::*; use ate_files::prelude::*; use std::sync::Arc; use std::sync::Mutex; use std::time::Duration; use tokio::sync::mpsc; use tokio::sync::watch; #[allow(unused_imports, dead_code)] use tr...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/bus/opened_file.rs
wasmer-deploy-cli/src/bus/opened_file.rs
use super::file_io::*; use async_trait::async_trait; use ate_files::prelude::*; use derivative::*; use std::sync::Arc; use std::sync::Mutex; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use wasmer_bus_fuse::api; use wasmer_bus_fuse::prelude::*; #[derive(Derivative, Clone)] #[deri...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/cancel_deposit.rs
wasmer-deploy-cli/src/request/cancel_deposit.rs
use serde::*; use crate::model::*; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct CancelDepositRequest { pub owner: Ownership, } #[derive(Debug, Serialize, Deserialize, Clone)] pub struct CancelDepositResponse {} #[derive(Debug, Serialize, Deserialize, Clone)] pub enum CancelDepositFailed { Auth...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/service_find.rs
wasmer-deploy-cli/src/request/service_find.rs
use serde::*; use crate::model::*; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct ServiceFindRequest { pub service_name: Option<String>, } #[derive(Debug, Serialize, Deserialize, Clone)] pub struct ServiceFindResponse { pub services: Vec<AdvertisedService>, } #[derive(Debug, Serialize, Deseriali...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/coin_proof.rs
wasmer-deploy-cli/src/request/coin_proof.rs
use crate::model::*; use ate::crypto::SignedProtectedData; use serde::*; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct CoinProofInner { /// Amount to be deposited into this account pub amount: Decimal, /// National currency to be deposited into this account (e.g. aud,eur,gbp,usd,hkd) pub c...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/withdraw.rs
wasmer-deploy-cli/src/request/withdraw.rs
use ate::crypto::SignedProtectedData; use serde::*; use crate::model::*; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct WithdrawRequestParams { pub sender: String, pub receiver: String, pub wallet: String, } #[derive(Debug, Serialize, Deserialize, Clone)] pub struct WithdrawRequest { pub ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/coin_carve.rs
wasmer-deploy-cli/src/request/coin_carve.rs
use serde::*; use ate::prelude::*; use crate::model::*; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct CoinCarveRequest { pub coin: PrimaryKey, pub owner: Ownership, pub needed_denomination: Decimal, pub new_token: EncryptKey, } #[derive(Debug, Serialize, Deserialize, Clone)] pub struct ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/coin_rotate.rs
wasmer-deploy-cli/src/request/coin_rotate.rs
use ate::crypto::SignedProtectedData; use ate::prelude::*; use serde::*; use crate::model::*; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct CoinRotateNotification { pub operator: String, pub receipt_number: String, pub from: String, pub to: String, } #[derive(Debug, Serialize, Deserializ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/contract_action.rs
wasmer-deploy-cli/src/request/contract_action.rs
use ate::crypto::*; use serde::*; use crate::model::BagOfCoins; use crate::model::ContractStatus; use crate::model::Invoice; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct ContractEntropy { /// What is this consumption related to pub related_to: String, /// Any coins created by this entropy sh...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/contract_create.rs
wasmer-deploy-cli/src/request/contract_create.rs
use ate::crypto::*; use ate::prelude::*; use serde::*; use std::time::Duration; use crate::model::Country; use crate::model::NationalCurrency; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct ContractCreateRequestParams { pub service_code: String, pub consumer_wallet: PrimaryKey, pub gst_country...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/coin_collect.rs
wasmer-deploy-cli/src/request/coin_collect.rs
use ate::prelude::*; use serde::*; use crate::model::*; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct CoinCollectRequest { pub coin_ancestors: Vec<Ownership>, } #[derive(Debug, Serialize, Deserialize, Clone)] pub struct CoinCollectPending { pub chain: ChainKey, pub key: PrimaryKey, pub i...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/mod.rs
wasmer-deploy-cli/src/request/mod.rs
mod cancel_deposit; mod coin_carve; mod coin_collect; mod coin_combine; mod coin_proof; mod coin_rotate; mod contract_action; mod contract_create; mod deposit; mod service_find; mod withdraw; pub use wasmer_auth::request::*; pub use cancel_deposit::*; pub use coin_carve::*; pub use coin_collect::*; pub use coin_combin...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/deposit.rs
wasmer-deploy-cli/src/request/deposit.rs
use serde::*; use crate::model::*; use super::CoinProof; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct DepositRequest { /// Proof that the caller has write access to the account specified pub proof: CoinProof, } #[derive(Debug, Serialize, Deserialize, Clone)] pub struct DepositCoin { pub va...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/request/coin_combine.rs
wasmer-deploy-cli/src/request/coin_combine.rs
use serde::*; use crate::model::*; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct CoinCombineRequest { pub coins: Vec<CarvedCoin>, pub new_ownership: Ownership, } #[derive(Debug, Serialize, Deserialize, Clone)] pub struct CoinCombineResponse { pub super_coin: CarvedCoin, } #[derive(Debug, Se...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/build.rs
build.rs
fn main() -> Result<(), Box<dyn std::error::Error>> { vergen::EmitBuilder::builder() .all_build() .all_git() .emit()?; Ok(()) }
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/config.rs
src/config.rs
use std::{env, path::PathBuf, str::FromStr, sync::OnceLock}; use color_eyre::eyre::{Result, eyre}; use directories::ProjectDirs; use figment::{ Figment, providers::{Env, Format, Serialized, Toml, Yaml}, }; use ratatui::style::Color; use serde::{Deserialize, Serialize}; use serde_with::{DisplayFromStr, NoneAsEm...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/app.rs
src/app.rs
use std::sync::{ Arc, atomic::{AtomicBool, Ordering}, }; use color_eyre::eyre::Result; use crossterm::event::{Event as CrosstermEvent, KeyEvent}; use ratatui::{DefaultTerminal, prelude::*, widgets::*}; use serde::{Deserialize, Serialize}; use strum::{Display, EnumIs}; use tokio::sync::mpsc::{self, UnboundedRec...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/errors.rs
src/errors.rs
use color_eyre::eyre::Result; use cfg_if::cfg_if; pub fn install_hooks() -> Result<()> { cfg_if! { if #[cfg(debug_assertions)] { install_better_panic(); } else { human_panic::setup_panic!(); } } color_eyre::install() } #[allow(dead_code)] fn install_better_...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/command.rs
src/command.rs
use serde::{Deserialize, Serialize}; use strum::Display; use crate::app::Mode; #[derive(Debug, Display, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)] pub enum Command { Quit, NextTab, PreviousTab, ClosePopup, SwitchMode(Mode), SwitchToLastMode, IncrementPage, DecrementPage...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/crates_io_api_helper.rs
src/crates_io_api_helper.rs
use std::sync::{Arc, Mutex, atomic::AtomicBool}; use crates_io_api::CratesQuery; use tokio::sync::mpsc::UnboundedSender; use crate::action::Action; use color_eyre::Result; /// Represents the parameters needed for fetching crates asynchronously. pub struct SearchParameters { pub search: String, pub page: u64,...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/cli.rs
src/cli.rs
use std::path::PathBuf; use clap::{ Parser, builder::{Styles, styling::AnsiColor}, }; use serde::Serialize; use serde_with::{NoneAsEmptyString, serde_as, skip_serializing_none}; use tracing::level_filters::LevelFilter; pub fn version() -> String { let git_describe = if env!("VERGEN_GIT_DESCRIBE") != "VERG...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/serde_helper.rs
src/serde_helper.rs
pub mod keybindings { use std::collections::HashMap; use color_eyre::eyre::Result; use crossterm::event::{KeyCode, KeyEvent, KeyModifiers}; use derive_deref::{Deref, DerefMut}; use itertools::Itertools; use serde::{Deserialize, Serialize, Serializer, de::Deserializer}; use crate::{action::...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/widgets.rs
src/widgets.rs
pub mod crate_info_table; pub mod help; pub mod popup_message; pub mod search_filter_prompt; pub mod search_page; pub mod search_results; pub mod status_bar; pub mod summary; pub mod tabs;
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/main.rs
src/main.rs
mod action; mod app; mod cli; mod command; mod config; mod crates_io_api_helper; mod errors; mod events; mod logging; mod serde_helper; mod widgets; use app::App; fn main() -> color_eyre::Result<()> { let cli = cli::parse(); config::init(&cli)?; logging::init()?; errors::install_hooks()?; if cli....
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/events.rs
src/events.rs
use core::fmt; use std::{pin::Pin, time::Duration}; use crossterm::event::{Event as CrosstermEvent, *}; use futures::{Stream, StreamExt}; use serde::{Deserialize, Serialize}; use tokio::time::interval; use tokio_stream::{StreamMap, wrappers::IntervalStream}; use crate::config; pub struct Events { streams: Stream...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/logging.rs
src/logging.rs
use color_eyre::eyre::Result; use tracing::level_filters::LevelFilter; use tracing_error::ErrorLayer; use tracing_subscriber::{ self, prelude::__tracing_subscriber_SubscriberExt, util::SubscriberInitExt, }; use crate::config; pub fn init() -> Result<()> { let config = config::get(); let directory = config...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/action.rs
src/action.rs
use serde::{Deserialize, Serialize}; use strum::Display; use crate::app::Mode; #[derive(Debug, Display, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] pub enum Action { Tick, Render, KeyRefresh, Resize(u16, u16), Suspend, Resume, Quit, Init { query: Option<String> }, Refresh,...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/widgets/tabs.rs
src/widgets/tabs.rs
use ratatui::{prelude::*, widgets::*}; use strum::{Display, EnumIter, FromRepr}; use crate::config; #[derive(Debug, Default, Clone, Copy, Display, FromRepr, EnumIter)] pub enum SelectedTab { #[default] Summary, Search, None, } impl SelectedTab { pub fn select(&mut self, selected_tab: SelectedTab)...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/widgets/status_bar.rs
src/widgets/status_bar.rs
use ratatui::{prelude::*, widgets::*}; use crate::{app::Mode, command::Command, config}; pub struct StatusBarWidget { text: String, mode: Mode, sort: crates_io_api::Sort, } impl StatusBarWidget { pub fn new(mode: Mode, sort: crates_io_api::Sort, text: String) -> Self { Self { text, mode, sort...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/widgets/search_results.rs
src/widgets/search_results.rs
use crates_io_api::Crate; use itertools::Itertools; use num_format::{Locale, ToFormattedString}; use ratatui::{prelude::*, widgets::*}; use unicode_width::UnicodeWidthStr; use crate::config; #[derive(Debug, Default)] pub struct SearchResults { pub crates: Vec<crates_io_api::Crate>, pub table_state: TableState...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/widgets/help.rs
src/widgets/help.rs
use itertools::Itertools; use ratatui::{prelude::*, widgets::*}; use crate::{ app::Mode, command::{ALL_COMMANDS, Command}, config, }; #[derive(Default, Debug, Clone)] pub struct Help { pub state: TableState, pub mode: Option<Mode>, } impl Help { pub fn new(state: TableState, mode: Option<Mode...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/widgets/summary.rs
src/widgets/summary.rs
use color_eyre::Result; use std::sync::{ Arc, Mutex, atomic::{AtomicBool, Ordering}, }; use itertools::Itertools; use ratatui::{layout::Flex, prelude::*, widgets::*}; use strum::{Display, EnumIs, EnumIter, FromRepr}; use tokio::sync::mpsc::UnboundedSender; use crate::{action::Action, config, crates_io_api_hel...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/widgets/search_filter_prompt.rs
src/widgets/search_filter_prompt.rs
use ratatui::{layout::Constraint::*, layout::Position, prelude::*, widgets::*}; use crate::{app::Mode, config}; use super::search_page::SearchMode; #[derive(Default, Debug, Copy, Clone, PartialEq, Eq, Hash)] pub struct SearchFilterPrompt { cursor_position: Option<Position>, } impl SearchFilterPrompt { pub f...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/widgets/popup_message.rs
src/widgets/popup_message.rs
use itertools::Itertools; use ratatui::{layout::Flex, prelude::*, widgets::*}; #[derive(Debug, Default, Clone, Copy)] pub struct PopupMessageState { scroll: usize, } impl PopupMessageState { pub fn scroll_up(&mut self) { self.scroll = self.scroll.saturating_sub(1) } pub fn scroll_down(&mut se...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/widgets/search_page.rs
src/widgets/search_page.rs
use color_eyre::Result; use std::{ collections::HashMap, sync::{ Arc, Mutex, atomic::{AtomicBool, Ordering}, }, }; use strum::EnumIs; use tracing::info; use crossterm::event::{Event as CrosstermEvent, KeyEvent}; use itertools::Itertools; use ratatui::prelude::*; use ratatui::{layout::Positi...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
ratatui/crates-tui
https://github.com/ratatui/crates-tui/blob/e1be774ae75fe9711fa13ba808c87e52db98d251/src/widgets/crate_info_table.rs
src/widgets/crate_info_table.rs
use itertools::Itertools; use ratatui::{prelude::*, widgets::*}; use crate::config; #[derive(Debug, Default)] pub struct CrateInfo { crate_info: TableState, } impl CrateInfo { pub fn scroll_previous(&mut self) { let i = self .crate_info .selected() .map_or(0, |i| i...
rust
MIT
e1be774ae75fe9711fa13ba808c87e52db98d251
2026-01-04T20:19:28.808186Z
false
catppuccin/rust
https://github.com/catppuccin/rust/blob/e4f47b6a524d8d9d3a262e3f3534955a01d77e93/build.rs
build.rs
//! Build script for the Catppuccin crate. //! This script uses the palette JSON file from the catppuccin/palette github repo //! in order to populate the `FlavorColors` struct as well as implement the various //! iteration & indexing primitives offered by the crate. use std::{ collections::HashMap, env, er...
rust
MIT
e4f47b6a524d8d9d3a262e3f3534955a01d77e93
2026-01-04T20:19:15.369728Z
false
catppuccin/rust
https://github.com/catppuccin/rust/blob/e4f47b6a524d8d9d3a262e3f3534955a01d77e93/src/lib.rs
src/lib.rs
//! 🦀 Soothing pastel theme for Rust. //! //! # Usage //! //! Add Catppuccin to your project's `Cargo.toml`: //! //! ```console //! $ cargo add catppuccin //! ``` //! //! # Example //! //! ```rust //! struct Button { //! text: String, //! background_color: String, //! }; //! //! fn confirm(text: String) -> But...
rust
MIT
e4f47b6a524d8d9d3a262e3f3534955a01d77e93
2026-01-04T20:19:15.369728Z
false
catppuccin/rust
https://github.com/catppuccin/rust/blob/e4f47b6a524d8d9d3a262e3f3534955a01d77e93/examples/serde.rs
examples/serde.rs
//! Example demonstrating integration with the `serde` crate. fn main() { let value = serde_json::to_string_pretty(&catppuccin::PALETTE).expect("palette can be serialized"); println!("{value}"); }
rust
MIT
e4f47b6a524d8d9d3a262e3f3534955a01d77e93
2026-01-04T20:19:15.369728Z
false
catppuccin/rust
https://github.com/catppuccin/rust/blob/e4f47b6a524d8d9d3a262e3f3534955a01d77e93/examples/css.rs
examples/css.rs
//! Example demonstrating integration with the `css-colors` crate. use css_colors::{percent, Color}; fn main() { let teal = catppuccin::PALETTE.mocha.colors.teal; let rgb: css_colors::RGB = teal.into(); println!("RGB: {}", rgb.to_css()); let hsl = rgb.to_hsl(); println!("HSL: {}", hsl.to_css()); ...
rust
MIT
e4f47b6a524d8d9d3a262e3f3534955a01d77e93
2026-01-04T20:19:15.369728Z
false
catppuccin/rust
https://github.com/catppuccin/rust/blob/e4f47b6a524d8d9d3a262e3f3534955a01d77e93/examples/bevy.rs
examples/bevy.rs
//! Example demonstrating integration with the `bevy` crate. use bevy::prelude::*; use catppuccin::PALETTE; fn main() { App::new() .add_plugins(DefaultPlugins) .add_systems(Startup, setup) .run(); } /// set up a simple 3D scene fn setup( mut commands: Commands, mut meshes: ResMut...
rust
MIT
e4f47b6a524d8d9d3a262e3f3534955a01d77e93
2026-01-04T20:19:15.369728Z
false
catppuccin/rust
https://github.com/catppuccin/rust/blob/e4f47b6a524d8d9d3a262e3f3534955a01d77e93/examples/ratatui.rs
examples/ratatui.rs
//! Example demonstrating integration with the `ratatui` crate. use std::io::{self, stdout}; use catppuccin::PALETTE; use ratatui::{ backend::CrosstermBackend, layout::Rect, style::Stylize as _, text::{Line, Span}, widgets::{Paragraph, Widget}, Terminal, TerminalOptions, Viewport, }; fn main()...
rust
MIT
e4f47b6a524d8d9d3a262e3f3534955a01d77e93
2026-01-04T20:19:15.369728Z
false
catppuccin/rust
https://github.com/catppuccin/rust/blob/e4f47b6a524d8d9d3a262e3f3534955a01d77e93/examples/term_grid.rs
examples/term_grid.rs
//! Example demonstrating integration with the `ansi_term` crate. use catppuccin::PALETTE; const fn ansi_term_color(color: &catppuccin::Color) -> ansi_term::Colour { ansi_term::Colour::RGB(color.rgb.r, color.rgb.g, color.rgb.b) } const fn ansi_term_ansi_color(color: &catppuccin::AnsiColor) -> ansi_term::Colour { ...
rust
MIT
e4f47b6a524d8d9d3a262e3f3534955a01d77e93
2026-01-04T20:19:15.369728Z
false
catppuccin/rust
https://github.com/catppuccin/rust/blob/e4f47b6a524d8d9d3a262e3f3534955a01d77e93/examples/simple.rs
examples/simple.rs
//! Simple example showing how to get colors from the Catppuccin palette. use catppuccin::{AnsiColor, ColorName, Rgb, PALETTE}; fn main() { let latte_teal = PALETTE.latte.colors.teal; let Rgb { r, g, b } = latte_teal.rgb; println!( "Latte's {} is {}, which is rgb({r}, {g}, {b})", latte_teal...
rust
MIT
e4f47b6a524d8d9d3a262e3f3534955a01d77e93
2026-01-04T20:19:15.369728Z
false
catppuccin/rust
https://github.com/catppuccin/rust/blob/e4f47b6a524d8d9d3a262e3f3534955a01d77e93/examples/iced.rs
examples/iced.rs
//! Example demonstrating integration with the `iced` crate. use iced::{ application, daemon::Appearance, widget::{button, column, container, text}, Alignment::Center, Element, Length::Fill, Result, }; const COLORS: catppuccin::FlavorColors = catppuccin::PALETTE.latte.colors; #[derive(Defa...
rust
MIT
e4f47b6a524d8d9d3a262e3f3534955a01d77e93
2026-01-04T20:19:15.369728Z
false
catppuccin/rust
https://github.com/catppuccin/rust/blob/e4f47b6a524d8d9d3a262e3f3534955a01d77e93/examples/custom_flavor.rs
examples/custom_flavor.rs
//! Example demonstrating how to make a custom flavor. //! Two options are provided; setting colors one-by-one, or using a helper macro. use catppuccin::{Color, Flavor, FlavorColors}; fn americano_simple() -> Flavor { let mut oled = catppuccin::PALETTE.mocha; oled.colors.base.hex = (0, 0, 0).into(); oled....
rust
MIT
e4f47b6a524d8d9d3a262e3f3534955a01d77e93
2026-01-04T20:19:15.369728Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/build.rs
rust-core/build.rs
extern crate napi_build; fn main() { napi_build::setup(); }
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/lib.rs
rust-core/src/lib.rs
#![deny(clippy::all)] // Note: napi-bindings are excluded during tests (not(test)) to avoid linker errors // when running `cargo test`. NAPI bindings require Node.js runtime which isn't // available in the test environment. Integration tests should use the built library. #[cfg(all(feature = "napi-bindings", not(test))...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/parsing/tree_walker.rs
rust-core/src/parsing/tree_walker.rs
//! Generic tree traversal utilities for tree-sitter ASTs use tree_sitter::Node; /// Generic tree walker that visits all nodes in a tree-sitter AST pub struct TreeWalker { /// Maximum depth to traverse (prevents infinite recursion) pub max_depth: usize, } impl Default for TreeWalker { fn default() -> Sel...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/parsing/manager.rs
rust-core/src/parsing/manager.rs
//! Parser management and initialization for multiple languages #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::types::{ParseError, AstNode, Symbol, ParseResult}; use std::collections::HashMap; use tree_sitter::{Language, Parser, Tree, Query, QueryCursor, Node, StreamingIterator}; // Import tree-...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/parsing/utils.rs
rust-core/src/parsing/utils.rs
//! Utility functions for name extraction and tree-sitter node handling use tree_sitter::Node; /// Utilities for extracting names and identifiers from tree-sitter nodes pub struct NameExtractor; impl NameExtractor { /// Extract name from a tree-sitter node by finding identifier children pub fn extract_name_f...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/parsing/mod.rs
rust-core/src/parsing/mod.rs
pub mod manager; pub mod tree_walker; pub mod fallback; pub mod utils; pub use manager::*; pub use tree_walker::*; pub use fallback::*; pub use utils::*;
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/parsing/fallback.rs
rust-core/src/parsing/fallback.rs
//! Fallback pattern-based extraction when tree-sitter parsing fails use crate::types::{SemanticConcept, LineRange}; use std::collections::HashMap; use std::path::Path; /// Fallback extractor for when tree-sitter parsing fails pub struct FallbackExtractor; impl FallbackExtractor { /// Create a new fallback extra...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/patterns/implementation.rs
rust-core/src/patterns/implementation.rs
//! Implementation pattern recognition for design patterns #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::patterns::types::{Pattern, PatternExample, ImplementationPattern, PatternExtractor}; use crate::types::{ParseError, LineRange, SemanticConcept}; use std::collections::HashMap; use regex::Rege...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
true
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/patterns/prediction.rs
rust-core/src/patterns/prediction.rs
//! Approach prediction based on learned patterns and context #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::patterns::types::{ApproachPrediction, ProblemComplexity, GeneratedApproach, Pattern}; use crate::types::{ParseError, SemanticConcept}; use std::collections::{HashMap, HashSet}; use serde_j...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
true
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/patterns/naming.rs
rust-core/src/patterns/naming.rs
//! Naming pattern analysis and recognition #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::patterns::types::{Pattern, PatternExample, NamingPattern, PatternExtractor}; use crate::types::{ParseError, LineRange, SemanticConcept}; use std::collections::HashMap; use walkdir::WalkDir; use std::fs; use...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/patterns/types.rs
rust-core/src/patterns/types.rs
//! Core type definitions for pattern learning and analysis #[cfg(feature = "napi-bindings")] use napi_derive::napi; use serde::{Deserialize, Serialize}; use crate::types::{LineRange, ParseError}; // Simple error type for when napi is not available (from original implementation) #[derive(Debug)] pub struct SimpleErro...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/patterns/learning.rs
rust-core/src/patterns/learning.rs
//! Core learning algorithms for pattern discovery and analysis #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::patterns::implementation::ImplementationPatternAnalyzer; use crate::patterns::naming::NamingPatternAnalyzer; use crate::patterns::prediction::ApproachPredictor; use crate::patterns::stru...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
true
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/patterns/mod.rs
rust-core/src/patterns/mod.rs
//! Pattern learning and analysis modules //! //! This module provides comprehensive pattern recognition and learning capabilities //! across multiple domains: naming conventions, structural patterns, implementation //! patterns, and approach prediction. // Core types and traits pub mod types; // Specialized pattern ...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/patterns/structural.rs
rust-core/src/patterns/structural.rs
//! Structural pattern detection and analysis #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::patterns::types::{Pattern, PatternExample, StructuralPattern, PatternExtractor}; use crate::types::{ParseError, SemanticConcept, LineRange}; use std::collections::{HashMap, HashSet}; use walkdir::WalkDir;...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
true
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/analysis/complexity.rs
rust-core/src/analysis/complexity.rs
//! Complexity analysis and metrics calculation #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::types::{SemanticConcept, ComplexityMetrics}; use std::collections::HashMap; /// Analyzer for calculating code complexity metrics #[cfg_attr(feature = "napi-bindings", napi)] pub struct ComplexityAnalyz...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/analysis/blueprint.rs
rust-core/src/analysis/blueprint.rs
//! Project blueprint analysis - entry points and feature mapping #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::types::ParseError; use crate::analysis::FrameworkInfo; use std::path::Path; use std::fs; /// Entry point information #[derive(Debug, Clone)] #[cfg_attr(feature = "napi-bindings", napi...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/analysis/semantic.rs
rust-core/src/analysis/semantic.rs
//! Main semantic analysis orchestration #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::types::{SemanticConcept, CodebaseAnalysisResult, ParseError, AnalysisConfig}; use crate::parsing::{ParserManager, FallbackExtractor, TreeWalker}; use crate::extractors::*; use crate::analysis::{ComplexityAnaly...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/analysis/relationships.rs
rust-core/src/analysis/relationships.rs
//! Relationship analysis and learning between semantic concepts #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::types::SemanticConcept; use std::collections::HashMap; /// Analyzer for learning and discovering relationships between code concepts #[cfg_attr(feature = "napi-bindings", napi)] pub st...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/analysis/frameworks.rs
rust-core/src/analysis/frameworks.rs
//! Framework detection and analysis #[cfg(feature = "napi-bindings")] use napi_derive::napi; use crate::types::ParseError; use std::collections::{HashMap, HashSet}; use std::path::Path; use walkdir::WalkDir; use std::fs; /// Framework detection results #[derive(Debug, Clone)] #[cfg_attr(feature = "napi-bindings", n...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/analysis/mod.rs
rust-core/src/analysis/mod.rs
pub mod semantic; pub mod complexity; pub mod relationships; pub mod frameworks; pub mod blueprint; pub use semantic::*; pub use complexity::*; pub use relationships::*; pub use frameworks::*; pub use blueprint::*;
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/types/config.rs
rust-core/src/types/config.rs
//! Configuration and file filtering logic for semantic analysis use std::path::Path; /// Configuration for file analysis pub struct AnalysisConfig { /// Maximum file size to analyze (in bytes) pub max_file_size: u64, /// Maximum files to process pub max_files: usize, /// Supported file extensions...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/types/errors.rs
rust-core/src/types/errors.rs
//! Error handling for the semantic analysis system /// Simple error type for when napi is not available #[derive(Debug)] pub struct SimpleError { message: String, } impl SimpleError { pub fn from_reason<S: Into<String>>(message: S) -> Self { Self { message: message.into(), } ...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/types/core_types.rs
rust-core/src/types/core_types.rs
//! Core type definitions for semantic analysis #[cfg(feature = "napi-bindings")] use napi_derive::napi; use serde::{Deserialize, Serialize}; use std::collections::HashMap; #[derive(Debug, Clone, Serialize, Deserialize)] #[cfg_attr(feature = "napi-bindings", napi(object))] pub struct SemanticConcept { pub id: Str...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/types/mod.rs
rust-core/src/types/mod.rs
pub mod core_types; pub mod errors; pub mod config; pub use core_types::*; pub use errors::*; pub use config::*;
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/rust.rs
rust-core/src/extractors/rust.rs
//! Rust concept extraction use crate::parsing::NameExtractor; use crate::types::{LineRange, ParseError, SemanticConcept}; use std::collections::HashMap; use tree_sitter::Node; /// Extractor for Rust concepts pub struct RustExtractor; impl RustExtractor { pub fn new() -> Self { Self } /// Extrac...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/go.rs
rust-core/src/extractors/go.rs
//! Go concept extraction use crate::types::{SemanticConcept, LineRange, ParseError}; use crate::parsing::NameExtractor; use std::collections::HashMap; use tree_sitter::Node; pub struct GoExtractor; impl GoExtractor { pub fn new() -> Self { Self } pub fn extract_concepts(&self, node: Node<'_>, file_path: &s...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/svelte.rs
rust-core/src/extractors/svelte.rs
//! Svelte concept extraction use crate::types::{SemanticConcept, LineRange, ParseError}; use crate::parsing::NameExtractor; use std::collections::HashMap; use tree_sitter::Node; pub struct SvelteExtractor; impl SvelteExtractor { pub fn new() -> Self { Self } pub fn extract_concepts(&self, node: Node<'_>, f...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/typescript.rs
rust-core/src/extractors/typescript.rs
//! Comprehensive TypeScript and JavaScript concept extraction using full grammar support //! //! This module provides detailed extraction of TypeScript/JavaScript constructs including: //! - Classes (regular, abstract, with decorators) //! - Interfaces with method signatures //! - Functions (regular, async, generato...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/python.rs
rust-core/src/extractors/python.rs
//! Comprehensive Python concept extraction using full grammar support //! //! This module provides detailed extraction of Python constructs including: //! - Classes (with inheritance, decorators, type parameters) //! - Functions (async, generators, decorators, type hints) //! - Variables (with type annotations) //! - ...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/csharp.rs
rust-core/src/extractors/csharp.rs
//! C# concept extraction use crate::types::{SemanticConcept, LineRange, ParseError}; use crate::parsing::NameExtractor; use std::collections::HashMap; use tree_sitter::Node; pub struct CSharpExtractor; impl CSharpExtractor { pub fn new() -> Self { Self } pub fn extract_concepts(&self, node: Node<'_>, file_...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/sql.rs
rust-core/src/extractors/sql.rs
//! Comprehensive SQL concept extraction using full grammar support //! //! This module provides detailed extraction of SQL constructs including: //! - Tables (CREATE TABLE, columns, constraints) //! - Views (CREATE VIEW) //! - Functions and Procedures (CREATE FUNCTION) //! - Indexes (CREATE INDEX) //! - Queries (SEL...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
true
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/mod.rs
rust-core/src/extractors/mod.rs
pub mod typescript; pub mod rust; pub mod python; pub mod sql; pub mod go; pub mod java; pub mod php; pub mod cpp; pub mod csharp; pub mod svelte; pub mod generic; pub use typescript::*; pub use rust::*; pub use python::*; pub use sql::*; pub use go::*; pub use java::*; pub use php::*; pub use cpp::*; pub use csharp:...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/java.rs
rust-core/src/extractors/java.rs
//! Java concept extraction use crate::types::{SemanticConcept, LineRange, ParseError}; use crate::parsing::NameExtractor; use std::collections::HashMap; use tree_sitter::Node; pub struct JavaExtractor; impl JavaExtractor { pub fn new() -> Self { Self } pub fn extract_concepts(&self, node: Node<'_>, file_pa...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/cpp.rs
rust-core/src/extractors/cpp.rs
//! C/C++ concept extraction use crate::types::{SemanticConcept, LineRange, ParseError}; use crate::parsing::NameExtractor; use std::collections::HashMap; use tree_sitter::Node; pub struct CppExtractor; impl CppExtractor { pub fn new() -> Self { Self } pub fn extract_concepts(&self, node: Node<'_>, file_pat...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/generic.rs
rust-core/src/extractors/generic.rs
//! Generic concept extraction for unknown languages use crate::types::{SemanticConcept, LineRange, ParseError}; use crate::parsing::NameExtractor; use std::collections::HashMap; use tree_sitter::Node; pub struct GenericExtractor; impl GenericExtractor { pub fn new() -> Self { Self } pub fn extract_concepts...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
pi22by7/In-Memoria
https://github.com/pi22by7/In-Memoria/blob/9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78/rust-core/src/extractors/php.rs
rust-core/src/extractors/php.rs
//! PHP concept extraction with docblock awareness use crate::parsing::NameExtractor; use crate::types::{LineRange, ParseError, SemanticConcept}; use regex::Regex; use std::collections::HashMap; use tree_sitter::Node; pub struct PhpExtractor; impl Default for PhpExtractor { fn default() -> Self { Self::n...
rust
MIT
9cbed0d63a52d61fcd66d0d651b8c4d7f787ba78
2026-01-04T20:19:30.317431Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/tls.rs
src/tls.rs
//! Wrapper types for TLS functionality, abstracting over [`rustls`] and //! [`native-tls`] connector and stream types. //! //! [`native-tls`]: tokio_native_tls::native_tls //! [`rustls`]: tokio_rustls::rustls #[cfg(any( feature = "rustls-webpki-roots", feature = "rustls-native-roots", feature = "rustls-pl...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/lib.rs
src/lib.rs
#![deny( clippy::pedantic, clippy::missing_docs_in_private_items, clippy::missing_errors_doc, rustdoc::broken_intra_doc_links, warnings )] #![cfg_attr(docsrs, feature(doc_cfg))] // Required for NEON on 32-bit ARM until stable #![cfg_attr( all(feature = "nightly", target_arch = "arm"), featur...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/sha.rs
src/sha.rs
//! Unified abstraction over all supported SHA-1 backends. #[cfg(all(feature = "aws_lc_rs", not(feature = "openssl")))] use aws_lc_rs::digest; #[cfg(feature = "openssl")] use openssl::sha::Sha1; #[cfg(all(feature = "ring", not(feature = "aws_lc_rs"), not(feature = "openssl")))] use ring::digest; #[cfg(all( feature ...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/mask.rs
src/mask.rs
//! This module contains six implementations of WebSocket frame masking and //! unmasking, all of them using the same algorithm and methods: //! - One AVX512-based implementation that masks 64 bytes per cycle (requires //! nightly rust) //! - One AVX2-based implementation that masks 32 bytes per cycle //! - O...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/client.rs
src/client.rs
//! Implementation of a WebSocket client. //! //! This can be used in three ways: //! - By letting the library connect to a remote URI and performing a HTTP/1.1 //! Upgrade handshake, via [`Builder::connect`] //! - By letting the library perform a HTTP/1.1 Upgrade handshake on an //! established stream, via...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/error.rs
src/error.rs
//! General error type used in the crate. use std::{fmt, io}; #[cfg(any( feature = "rustls-webpki-roots", feature = "rustls-native-roots", feature = "rustls-platform-verifier", feature = "rustls-bring-your-own-connector" ))] use rustls_pki_types::InvalidDnsNameError; #[cfg(feature = "native-tls")] use ...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/rand.rs
src/rand.rs
//! Random numbers generation utilities required in WebSocket clients. #[cfg(not(any( feature = "fastrand", feature = "getrandom", feature = "nightly", feature = "rand" )))] compile_error!( "Using the `client` feature requires enabling a random number generator implementation via one of the followi...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/resolver.rs
src/resolver.rs
//! Abstractions over DNS resolvers. use std::{future::Future, net::SocketAddr}; use crate::Error; /// Trait for a DNS resolver to resolve hostnames and ports to IP addresses. pub trait Resolver: Send { /// Resolve a hostname and port to an IP address, asynchronously. fn resolve( &self, host:...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/server.rs
src/server.rs
//! Implementation of a WebSocket server. //! //! This can be used in two ways: //! - By letting the library perform a HTTP/1.1 Upgrade handshake on an //! established stream, via [`Builder::accept`] //! - By performing the handshake yourself and then using [`Builder::serve`] //! to let it take over a WebSo...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/utf8.rs
src/utf8.rs
//! UTF-8 validation and parsing helpers that abstract over [`simdutf8`]. use std::hint::unreachable_unchecked; use crate::proto::ProtocolError; /// Converts a slice of bytes to a string slice. This will use SIMD acceleration /// if available. /// /// # Errors /// /// Returns a [`ProtocolError`] if the input is inval...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/upgrade/client_request.rs
src/upgrade/client_request.rs
//! A [`Codec`] to parse client HTTP Upgrade handshakes and validate them. use std::str::FromStr; use base64::{Engine, engine::general_purpose::STANDARD}; use bytes::{Buf, BytesMut}; use http::{HeaderMap, header::SET_COOKIE}; use httparse::Request; use tokio_util::codec::Decoder; use crate::{sha::digest, upgrade::Err...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/upgrade/mod.rs
src/upgrade/mod.rs
//! HTTP upgrade request and response generation and validation helpers. use std::fmt; #[cfg(feature = "server")] pub(crate) mod client_request; #[cfg(feature = "client")] pub(crate) mod server_response; /// A parsed HTTP/1.1 101 Switching Protocols response. /// These responses typically do not contain a body, there...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/upgrade/server_response.rs
src/upgrade/server_response.rs
//! A [`Codec`] to perform a HTTP Upgrade handshake with a server and validate //! the response. use std::str::FromStr; use base64::{Engine, engine::general_purpose::STANDARD}; use bytes::{Buf, BytesMut}; use http::{HeaderValue, StatusCode, header::HeaderName}; use httparse::{Header, Response}; use tokio_util::codec::...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/proto/stream.rs
src/proto/stream.rs
//! Frame aggregating abstraction over the low-level [`super::codec`] //! implementation that provides [`futures_sink::Sink`] and //! [`futures_core::Stream`] implementations that take [`Message`] as a //! parameter. use std::{ collections::VecDeque, io::{self, IoSlice}, mem::{replace, take}, pin::Pin, ...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/proto/codec.rs
src/proto/codec.rs
//! Implementation of a tokio-util [`Decoder`] for WebSocket //! frames. The [`Encoder`] is a placeholder and unreachable, since tokio-util's //! internal buffer used in the encoder comes with a hefty performance penalty //! for large payloads due to the required memmove. Instead, we implement our //! own, zero-copy im...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/proto/error.rs
src/proto/error.rs
//! WebSocket protocol error type. use std::fmt; /// Error encountered on protocol violations by the other end of the connection. #[allow(clippy::module_name_repetitions)] #[derive(Debug)] #[non_exhaustive] pub enum ProtocolError { /// A fragmented control frame was received. FragmentedControlFrame, /// An...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false
Gelbpunkt/tokio-websockets
https://github.com/Gelbpunkt/tokio-websockets/blob/618599d15e9ee2a9a7191d081a56d90eae4a811a/src/proto/types.rs
src/proto/types.rs
//! Types required for the WebSocket protocol implementation. use std::{fmt, mem::replace, num::NonZeroU16, ops::Deref}; use bytes::{BufMut, Bytes, BytesMut}; use super::error::ProtocolError; use crate::utf8; /// The opcode of a WebSocket frame. It denotes the type of the frame or an /// assembled message. /// /// A...
rust
MIT
618599d15e9ee2a9a7191d081a56d90eae4a811a
2026-01-04T20:19:32.035255Z
false