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
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/codegen/mod.rs
wincode/codegen/mod.rs
//! Codegen for the `wincode` crate. use std::{ env, fs::File, io::{BufWriter, Error, Result}, path::{Path, PathBuf}, }; mod tuple; /// Generate tuple implementations for `SchemaWrite` and `SchemaRead`. fn generate_tuples(out_dir: &Path) -> Result<()> { let out_file = File::create(out_dir.join("tu...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/serde.rs
wincode/src/serde.rs
#[cfg(feature = "alloc")] use alloc::vec::Vec; use { crate::{ error::{ReadResult, WriteResult}, io::{Reader, Writer}, schema::{SchemaRead, SchemaWrite}, SchemaReadOwned, }, core::mem::MaybeUninit, }; /// Helper over [`SchemaRead`] that automatically constructs a reader /// a...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/lib.rs
wincode/src/lib.rs
//! wincode is a fast, bincode‑compatible serializer/deserializer focused on in‑place //! initialization and direct memory writes. //! //! In short, `wincode` operates over traits that facilitate direct writes of memory //! into final destinations (including heap-allocated buffers) without intermediate //! staging buff...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/error.rs
wincode/src/error.rs
//! Error types and helpers. use {crate::io, core::str::Utf8Error, thiserror::Error}; #[derive(Error, Debug)] pub enum Error { #[error(transparent)] WriteError(#[from] WriteError), #[error(transparent)] ReadError(#[from] ReadError), } #[derive(Error, Debug)] pub enum WriteError { #[error(transpare...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/proptest_config.rs
wincode/src/proptest_config.rs
use proptest::test_runner::Config; /// Configuration for proptest tests. /// /// Disable FS I/O in Miri. pub(crate) fn proptest_cfg() -> Config { #[cfg(miri)] { Config { failure_persistence: None, // Avoid excruciatingly long test times in Miri. cases: 5, ...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/len.rs
wincode/src/len.rs
//! Support for heterogenous sequence length encoding. use crate::{ error::{pointer_sized_decode_error, preallocation_size_limit, ReadResult, WriteResult}, io::{Reader, Writer}, schema::{SchemaRead, SchemaWrite}, }; /// Behavior to support heterogenous sequence length encoding. /// /// It is possible for s...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/io/slice.rs
wincode/src/io/slice.rs
use {super::*, core::marker::PhantomData}; /// Helpers for trusted slice operations. pub(super) mod trusted_slice { use super::*; #[inline] pub(super) fn fill_buf(bytes: &[u8], n_bytes: usize) -> &[u8] { unsafe { bytes.get_unchecked(..n_bytes.min(bytes.len())) } } #[inline] pub(super)...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/io/cursor.rs
wincode/src/io/cursor.rs
use super::*; #[cfg(feature = "alloc")] use {alloc::vec::Vec, core::slice::from_raw_parts_mut}; /// `Cursor` wraps an in-memory buffer, providing [`Reader`] and [`Writer`] functionality /// for types implementing <code>[AsRef]<\[u8]></code>. /// /// This can be especially useful for wrapping [`Reader`]s and [`Writer`]...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/io/vec.rs
wincode/src/io/vec.rs
use {super::*, alloc::vec::Vec}; /// Trusted writer for `Vec<u8>` that continues appending to the vector's spare capacity. /// /// Generally this should not be constructed directly, but rather by calling [`Writer::as_trusted_for`] /// on a [`Vec<u8>`]. This will ensure that the safety invariants are upheld. /// /// # ...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/io/mod.rs
wincode/src/io/mod.rs
//! [`Reader`] and [`Writer`] implementations. use { core::{ mem::{self, transmute, MaybeUninit}, ptr, slice::from_raw_parts, }, thiserror::Error, }; #[derive(Error, Debug)] pub enum ReadError { #[error("Attempting to read {0} bytes")] ReadSizeLimit(usize), #[error( ...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/schema/mod.rs
wincode/src/schema/mod.rs
//! Schema traits. //! //! # Example //! //! ``` //! # #[cfg(all(feature = "solana-short-vec", feature = "alloc"))] { //! # use rand::prelude::*; //! # use wincode::{Serialize, Deserialize, len::{BincodeLen, ShortU16Len}, containers::{self, Pod}}; //! # use wincode_derive::{SchemaWrite, SchemaRead}; //! # use std::arra...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
true
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/schema/impls.rs
wincode/src/schema/impls.rs
//! Blanket implementations for std types. //! //! Because the blanket implementations must be entirely general (e.g., we //! need to support `Vec<T>` for any `T`), we can't make any assumptions about //! the "Plain Old Data" nature of `T`, so all sequences will treat constituent //! elements of `T` as opaque. Of cours...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
true
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/src/schema/containers.rs
wincode/src/schema/containers.rs
//! This module provides specialized implementations of standard library collection types that //! provide control over the length encoding (see [`SeqLen`](crate::len::SeqLen)), as well //! as special case opt-in raw-copy overrides (see [`Pod`]). //! //! # Examples //! Raw byte vec with solana short vec length encoding...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode/benches/benchmarks.rs
wincode/benches/benchmarks.rs
use { criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput}, serde::{Deserialize, Serialize}, std::{collections::HashMap, hint::black_box}, wincode::{deserialize, serialize, serialize_into, serialized_size, SchemaRead, SchemaWrite}, }; #[derive(Serialize, Deserialize, SchemaW...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode-derive/src/lib.rs
wincode-derive/src/lib.rs
//! Derive macros for `SchemaWrite` and `SchemaRead`. //! //! Note using this on packed structs is UB. //! //! Refer to the [`wincode`](https://docs.rs/wincode) crate for examples. use { proc_macro::TokenStream, syn::{parse_macro_input, DeriveInput}, }; mod common; mod schema_read; mod schema_write; /// Imple...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode-derive/src/schema_write.rs
wincode-derive/src/schema_write.rs
use { crate::common::{ default_tag_encoding, extract_repr, get_crate_name, get_src_dst, suppress_unused_fields, Field, FieldsExt, SchemaArgs, StructRepr, TraitImpl, Variant, VariantsExt, }, darling::{ ast::{Data, Fields, Style}, Error, FromDeriveInput, Result, }, proc...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode-derive/src/common.rs
wincode-derive/src/common.rs
use { darling::{ ast::{Data, Fields, Style}, FromDeriveInput, FromField, FromVariant, Result, }, proc_macro2::{Span, TokenStream}, quote::quote, std::{ borrow::Cow, collections::VecDeque, fmt::{self, Display}, }, syn::{ parse_quote, spa...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
anza-xyz/wincode
https://github.com/anza-xyz/wincode/blob/9f0ffa346d95c31b94486b7bfea724b73330c42f/wincode-derive/src/schema_read.rs
wincode-derive/src/schema_read.rs
use { crate::common::{ default_tag_encoding, extract_repr, get_crate_name, get_src_dst, get_src_dst_fully_qualified, suppress_unused_fields, Field, FieldsExt, SchemaArgs, StructRepr, TraitImpl, TypeExt, Variant, VariantsExt, }, darling::{ ast::{Data, Fields, Style}, E...
rust
Apache-2.0
9f0ffa346d95c31b94486b7bfea724b73330c42f
2026-01-04T20:24:02.028790Z
false
rust-lang/libz-sys
https://github.com/rust-lang/libz-sys/blob/fc9f6504e415a3d0787d9c84db9a043ad3f050d4/build.rs
build.rs
use std::env; use std::fs; use std::path::PathBuf; fn main() { println!("cargo:rerun-if-env-changed=LIBZ_SYS_STATIC"); println!("cargo:rerun-if-changed=build.rs"); println!("cargo:rerun-if-changed=zng/cmake.rs"); println!("cargo:rerun-if-changed=zng/cc.rs"); let host = env::var("HOST").unwrap(); ...
rust
Apache-2.0
fc9f6504e415a3d0787d9c84db9a043ad3f050d4
2026-01-04T20:23:59.805655Z
false
rust-lang/libz-sys
https://github.com/rust-lang/libz-sys/blob/fc9f6504e415a3d0787d9c84db9a043ad3f050d4/src/lib.rs
src/lib.rs
#![allow(non_camel_case_types)] #![allow(non_snake_case)] use std::os::raw::{c_char, c_int, c_long, c_uchar, c_uint, c_ulong, c_void}; // Macro for variances between zlib-ng in native mode and either zlib or zlib-ng in zlib compat // mode. Note in particular that zlib-ng in compat mode does *not* use the zng case. #[...
rust
Apache-2.0
fc9f6504e415a3d0787d9c84db9a043ad3f050d4
2026-01-04T20:23:59.805655Z
false
rust-lang/libz-sys
https://github.com/rust-lang/libz-sys/blob/fc9f6504e415a3d0787d9c84db9a043ad3f050d4/systest/build.rs
systest/build.rs
use std::env; fn main() { let zng = env::var("CARGO_PKG_NAME").unwrap() == "systest-zng"; let mut cfg = ctest2::TestGenerator::new(); cfg.define("WITH_GZFILEOP", Some("ON")); let (header, dep_include) = if zng { ("zlib-ng.h", "DEP_Z_NG_INCLUDE") } else { ("zlib.h", "DEP_Z_INCLUDE") ...
rust
Apache-2.0
fc9f6504e415a3d0787d9c84db9a043ad3f050d4
2026-01-04T20:23:59.805655Z
false
rust-lang/libz-sys
https://github.com/rust-lang/libz-sys/blob/fc9f6504e415a3d0787d9c84db9a043ad3f050d4/systest/src/main.rs
systest/src/main.rs
#![allow(bad_style, improper_ctypes)] use libc::*; #[cfg(not(zng))] use libz_sys::*; #[cfg(zng)] use libz_ng_sys::*; include!(concat!(env!("OUT_DIR"), "/all.rs"));
rust
Apache-2.0
fc9f6504e415a3d0787d9c84db9a043ad3f050d4
2026-01-04T20:23:59.805655Z
false
rust-lang/libz-sys
https://github.com/rust-lang/libz-sys/blob/fc9f6504e415a3d0787d9c84db9a043ad3f050d4/zng/cc.rs
zng/cc.rs
use std::{ env, fs, io::Write as _, path::{Path, PathBuf}, }; struct Build { cfg: cc::Build, is_msvc: bool, } impl Build { fn new(cfg: cc::Build) -> Self { let is_msvc = cfg.try_get_compiler().unwrap().is_like_msvc(); Self { cfg, is_msvc } } fn append(&mut self, root: ...
rust
Apache-2.0
fc9f6504e415a3d0787d9c84db9a043ad3f050d4
2026-01-04T20:23:59.805655Z
false
rust-lang/libz-sys
https://github.com/rust-lang/libz-sys/blob/fc9f6504e415a3d0787d9c84db9a043ad3f050d4/zng/cmake.rs
zng/cmake.rs
use std::env; pub fn build_zlib_ng(target: &str, compat: bool) { let mut cmake = cmake::Config::new("src/zlib-ng"); cmake .define("BUILD_SHARED_LIBS", "OFF") .define("ZLIB_COMPAT", if compat { "ON" } else { "OFF" }) .define("ZLIB_ENABLE_TESTS", "OFF") .define("WITH_GZFILEOP", "O...
rust
Apache-2.0
fc9f6504e415a3d0787d9c84db9a043ad3f050d4
2026-01-04T20:23:59.805655Z
false
brycx/checkpwn
https://github.com/brycx/checkpwn/blob/0fde0d153d61b8d9f34685372c4faa1dc91ed015/src/config.rs
src/config.rs
use dirs_next::config_dir; use serde::{Deserialize, Serialize}; use std::{fs, io::Write, path::PathBuf}; const CHECKPWN_CONFIG_FILE_NAME: &str = "checkpwn.yml"; const CHECKPWN_CONFIG_DIR: &str = "checkpwn"; #[derive(Serialize, Deserialize, Debug)] pub struct Config { pub api_key: String, } #[derive(Debug)] pub s...
rust
MIT
0fde0d153d61b8d9f34685372c4faa1dc91ed015
2026-01-04T20:24:03.194273Z
false
brycx/checkpwn
https://github.com/brycx/checkpwn/blob/0fde0d153d61b8d9f34685372c4faa1dc91ed015/src/errors.rs
src/errors.rs
// MIT License // Copyright (c) 2018-2022 brycx // 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, merg...
rust
MIT
0fde0d153d61b8d9f34685372c4faa1dc91ed015
2026-01-04T20:24:03.194273Z
false
brycx/checkpwn
https://github.com/brycx/checkpwn/blob/0fde0d153d61b8d9f34685372c4faa1dc91ed015/src/main.rs
src/main.rs
// MIT License // Copyright (c) 2018-2022 brycx // 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, merg...
rust
MIT
0fde0d153d61b8d9f34685372c4faa1dc91ed015
2026-01-04T20:24:03.194273Z
false
luqmana/wireguard-uwp-rs
https://github.com/luqmana/wireguard-uwp-rs/blob/328e622fb613d611bb022874a6535e2846ac6640/plugin/src/config.rs
plugin/src/config.rs
//! Config parsing. use std::net::IpAddr; use boringtun::crypto::x25519::{X25519PublicKey, X25519SecretKey}; use ipnetwork::IpNetwork; use serde::Deserialize; use serde_with::{serde_as, DisplayFromStr}; /// A fully-parsed config #[derive(Deserialize)] #[serde(rename_all = "PascalCase")] pub struct WireGuardConfig { ...
rust
Apache-2.0
328e622fb613d611bb022874a6535e2846ac6640
2026-01-04T20:24:02.148210Z
false
luqmana/wireguard-uwp-rs
https://github.com/luqmana/wireguard-uwp-rs/blob/328e622fb613d611bb022874a6535e2846ac6640/plugin/src/lib.rs
plugin/src/lib.rs
//! This crate contains the `IVpnPlugIn` implementation for our UWP VPN plugin app. #![windows_subsystem = "windows"] #![allow(non_snake_case)] // Windows naming conventions mod background; mod config; mod logging; mod plugin; mod utils;
rust
Apache-2.0
328e622fb613d611bb022874a6535e2846ac6640
2026-01-04T20:24:02.148210Z
false
luqmana/wireguard-uwp-rs
https://github.com/luqmana/wireguard-uwp-rs/blob/328e622fb613d611bb022874a6535e2846ac6640/plugin/src/utils.rs
plugin/src/utils.rs
//! Utilities and helper types that don't quite fit anywhere else. use std::sync::atomic::{AtomicU32, Ordering}; use windows::{ self as Windows, core::*, Foundation::Collections::{IIterable, IIterator, IVector, IVectorView}, Networking::Vpn::VpnPacketBuffer, Win32::Foundation::{E_BOUNDS, E_NOTIMPL...
rust
Apache-2.0
328e622fb613d611bb022874a6535e2846ac6640
2026-01-04T20:24:02.148210Z
false
luqmana/wireguard-uwp-rs
https://github.com/luqmana/wireguard-uwp-rs/blob/328e622fb613d611bb022874a6535e2846ac6640/plugin/src/logging.rs
plugin/src/logging.rs
//! Logging primitives along with our ETW Trace Provider. use win_etw_macros::trace_logging_provider; /// The collection of ETW events our plugin emits. #[allow(non_snake_case)] #[trace_logging_provider(guid = "c4522a55-401f-4b81-93f9-aa0d1db734c4")] pub trait WireGuardUWPEvents { /// `Connect` event emitted once...
rust
Apache-2.0
328e622fb613d611bb022874a6535e2846ac6640
2026-01-04T20:24:02.148210Z
false
luqmana/wireguard-uwp-rs
https://github.com/luqmana/wireguard-uwp-rs/blob/328e622fb613d611bb022874a6535e2846ac6640/plugin/src/background.rs
plugin/src/background.rs
//! The entrypoint for the background task where our actual VPN plugin runs. use std::mem::ManuallyDrop; use windows::{ self as Windows, core::*, ApplicationModel::Background::IBackgroundTaskInstance, ApplicationModel::Core::CoreApplication, Networking::Vpn::{IVpnPlugIn, VpnChannel}, Win32::Fo...
rust
Apache-2.0
328e622fb613d611bb022874a6535e2846ac6640
2026-01-04T20:24:02.148210Z
false
luqmana/wireguard-uwp-rs
https://github.com/luqmana/wireguard-uwp-rs/blob/328e622fb613d611bb022874a6535e2846ac6640/plugin/src/plugin.rs
plugin/src/plugin.rs
//! Our implementation of `IVpnPlugIn` which is the bulk of the UWP VPN plugin. use std::sync::{Arc, RwLock}; use std::time::Duration; use boringtun::noise::{Tunn, TunnResult}; use ipnetwork::IpNetwork; use windows::{ self as Windows, core::*, Networking::Sockets::*, Networking::Vpn::*, Networking...
rust
Apache-2.0
328e622fb613d611bb022874a6535e2846ac6640
2026-01-04T20:24:02.148210Z
false
luqmana/wireguard-uwp-rs
https://github.com/luqmana/wireguard-uwp-rs/blob/328e622fb613d611bb022874a6535e2846ac6640/app/src/main.rs
app/src/main.rs
//! This crate contains the foreground portion of our UWP VPN plugin app. //! //! We use XAML programmatically to generate the UI. #![windows_subsystem = "windows"] #![allow(non_snake_case)] // Windows naming conventions use windows::{ self as Windows, core::*, ApplicationModel::Activation::LaunchActivate...
rust
Apache-2.0
328e622fb613d611bb022874a6535e2846ac6640
2026-01-04T20:24:02.148210Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/torus.rs
src/torus.rs
use std::f32::consts::PI; use super::generators::{IndexedPolygon, SharedVertex}; use super::{MapVertex, Quad, Vertex}; use crate::math::Vector3; /// #[derive(Clone, Copy)] pub struct Torus { idx: usize, radius: f32, tubular_radius: f32, radial_segments: usize, tubular_segments: usize, } impl Toru...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/triangulate.rs
src/triangulate.rs
use std::collections::VecDeque; use crate::Polygon::{self, PolyQuad, PolyTri}; use crate::{Quad, Triangle}; /// Provides a way to convert a polygon down to triangles. pub trait EmitTriangles { /// The content of each point in the triangle. type Vertex; /// Convert a polygon to one or more triangles, each...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/lib.rs
src/lib.rs
//! `Genmesh`'s is a library that offers ways to generate and manipulate vertex streams. //! //! The core problem that this library solves is to find a nice way to build meshes that //! does not just result in throwing all the vertices and indices into a `Vec<T>` and //! calling it done. While doing so is simple from a...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/math.rs
src/math.rs
use std::ops; #[derive(Copy, Clone, Debug)] pub struct Vector3 { x: f32, y: f32, z: f32, } impl Vector3 { #[inline] pub fn new(x: f32, y: f32, z: f32) -> Self { Vector3 { x, y, z } } #[inline] pub fn magnitude_squared(self) -> f32 { self.x * self.x + self.y * self.y + ...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/cone.rs
src/cone.rs
use std::f32::consts::{self, FRAC_1_SQRT_2}; use super::generators::{IndexedPolygon, SharedVertex}; use super::{MapVertex, Triangle, Vertex}; const TWO_PI: f32 = consts::PI * 2.; #[derive(Debug)] enum VertexSection { Tip(usize), TopRadius(usize), BottomRadius(usize), BottomCenter, } /// The `Cone` m...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/poly.rs
src/poly.rs
use std::collections::VecDeque; use std::marker::PhantomData; /// A polygon with 4 points. Maps to `GL_QUADS`. #[derive(Clone, Debug, PartialEq, Eq, Copy)] pub struct Quad<T> { /// The first point of the quad pub x: T, /// The second point of the quad pub y: T, /// The third point of the quad p...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/icosphere.rs
src/icosphere.rs
//! Icosahedral sphere use std::collections::HashMap; use crate::generators::{IndexedPolygon, SharedVertex}; use crate::{math::Vector3, Triangle, Vertex}; /// Icosahedral sphere with radius 1, centered at (0., 0., 0.). #[derive(Clone, Debug)] pub struct IcoSphere { i: usize, vertices: Vec<[f32; 3]>, face...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/neighbors.rs
src/neighbors.rs
//! This is a utility to search out and work in the mesh as a whole rather //! then polygon by polygon. use std::collections::{HashMap, HashSet}; use crate::poly::{EmitLines, Line, Triangle}; use crate::{math::Vector3, Normal}; /// Neighbors search accelerating structure. pub struct Neighbors<T> { /// Mesh verti...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/plane.rs
src/plane.rs
use super::generators::{IndexedPolygon, SharedVertex}; use super::{Quad, Vertex}; /// Represents a 2D plane with origin of (0, 0), from 1 to -1. #[derive(Clone, Copy)] pub struct Plane { subdivide_x: usize, subdivide_y: usize, x: usize, y: usize, } impl Plane { /// Creates a new plane. pub fn ...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/circle.rs
src/circle.rs
use std::f32::consts::PI; use crate::generators::{IndexedPolygon, SharedVertex}; use crate::Polygon::{self, PolyTri}; use crate::{Triangle, Vertex}; /// Represents a circle in the XY plane with radius of 1, centered at (0, 0, 0) #[derive(Clone, Copy)] pub struct Circle { u: usize, sub_u: usize, } impl Circle...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/generator.rs
src/generator.rs
use std::marker::PhantomData; use std::ops::Range; /// The `SharedVertex` trait is meant to be used with the [`IndexedPolygon`] trait. /// This trait is meant as a way to calculate the shared vertices that are /// required to build the implementors mesh. /// /// [`IndexedPolygon`]: trait.IndexedPolygon.html pub trait ...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/cylinder.rs
src/cylinder.rs
use crate::generators::{IndexedPolygon, SharedVertex}; use crate::{Normal, Polygon, Position, Quad, Triangle, Vertex}; use std::f32::consts::PI; /// Represents a cylinder with radius of 1, height of 2, /// and centered at (0, 0, 0) pointing up (to 0, 0, 1). #[derive(Clone, Copy)] pub struct Cylinder { u: usize, ...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/cube.rs
src/cube.rs
use std::ops::Range; use crate::generators::{IndexedPolygon, SharedVertex}; use crate::{MapVertex, Normal, Position, Quad, Vertex}; /// A perfect cube, centered at (0, 0, 0) with each face starting at 1/-1 away from the origin #[derive(Clone)] pub struct Cube { range: Range<usize>, } impl Cube { /// Creates ...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/indexer.rs
src/indexer.rs
/// A trait defining how to define an Indexer. An indexer is an object /// that collects vertices and emits indices for the given vertex. The intent /// is that an Indexer can find redundent vertices and deduplicate them /// by returning aliased indices. pub trait Indexer<T> { /// Converts a vertex into an index. ...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/src/sphere.rs
src/sphere.rs
use std::f32::consts::PI; use crate::generators::{IndexedPolygon, SharedVertex}; use crate::Polygon::{self, PolyQuad, PolyTri}; use crate::{Quad, Triangle, Vertex}; /// Represents a sphere with radius of 1, centered at (0, 0, 0). #[derive(Clone, Copy)] pub struct SphereUv { u: usize, v: usize, sub_u: usiz...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/tests/test.rs
tests/test.rs
extern crate genmesh; use genmesh::{ EmitTriangles, Indexer, LruIndexer, MapToVertices, Quad, Triangle, Triangulate, Vertex, Vertices, }; use genmesh::generators::Plane; #[test] fn quad_vertex() { let input = &[Quad::new(0usize, 1, 2, 3), Quad::new(1usize, 2, 3, 4)]; let output = &[ Quad::ne...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/tests/winding.rs
tests/winding.rs
use std::collections::HashSet; use cgmath::InnerSpace; use genmesh::{generators, EmitLines, Line, Lines, MapToVertices, Vertex}; #[derive(Debug)] struct Edge { dir: cgmath::Vector3<f32>, mid: cgmath::Vector3<f32>, nor: cgmath::Vector3<f32>, } impl Edge { fn new(line: Line<Vertex>) -> Self { l...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/tests/generate.rs
tests/generate.rs
use genmesh::{generators, EmitTriangles, MapVertex, Triangulate}; use std::fmt::Debug; /// Test a generator by comparing two triangular meshes: /// 1) by using the `Iterator` implementation of the given generator /// 2) by producing shared vertices and sampling them with the /// produced indexed polygons. fn test<F...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
gfx-rs/genmesh
https://github.com/gfx-rs/genmesh/blob/94443dff35d348f63f4f75638166f3e1ef3f3d16/benches/bench.rs
benches/bench.rs
// Copyright GFX Developers 2014-2017 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
rust
Apache-2.0
94443dff35d348f63f4f75638166f3e1ef3f3d16
2026-01-04T20:23:55.648184Z
false
frol/flatc-rust
https://github.com/frol/flatc-rust/blob/16934d819a9abb7c84378e44add06b558aaebb13/src/lib.rs
src/lib.rs
//! This crate provides a programmatical way to invoke `flatc` command (e.g. from `build.rs`) to //! generate Rust (or, in fact, any other language) helpers to work with FlatBuffers. //! //! NOTE: You will still need //! [`flatc` utility](https://google.github.io/flatbuffers/flatbuffers_guide_using_schema_compiler.html...
rust
Apache-2.0
16934d819a9abb7c84378e44add06b558aaebb13
2026-01-04T20:24:00.919195Z
false
frol/flatc-rust
https://github.com/frol/flatc-rust/blob/16934d819a9abb7c84378e44add06b558aaebb13/examples/tutorial/build.rs
examples/tutorial/build.rs
extern crate flatc_rust; // or just `use flatc_rust;` with Rust 2018 edition. use std::path::Path; fn main() { println!("cargo:rerun-if-changed=flatbuffers/monster.fbs"); flatc_rust::run(flatc_rust::Args { inputs: &[Path::new("flatbuffers/monster.fbs")], out_dir: Path::new("target/flatbuffers/...
rust
Apache-2.0
16934d819a9abb7c84378e44add06b558aaebb13
2026-01-04T20:24:00.919195Z
false
frol/flatc-rust
https://github.com/frol/flatc-rust/blob/16934d819a9abb7c84378e44add06b558aaebb13/examples/tutorial/src/main.rs
examples/tutorial/src/main.rs
/* * Copyright 2018 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
rust
Apache-2.0
16934d819a9abb7c84378e44add06b558aaebb13
2026-01-04T20:24:00.919195Z
false
sile/patricia_tree
https://github.com/sile/patricia_tree/blob/3191dba6c7fe30f502006e4c195a0d4c577a53e7/src/node.rs
src/node.rs
//! A node which represents a subtree of a patricia tree. use crate::{BorrowedBytes, Bytes}; use alloc::alloc::{Layout, alloc, dealloc, handle_alloc_error}; use alloc::vec::Vec; use core::marker::PhantomData; use core::{mem, ptr, slice}; macro_rules! assert_some { ($expr:expr) => { if let Some(value) = $ex...
rust
MIT
3191dba6c7fe30f502006e4c195a0d4c577a53e7
2026-01-04T20:24:05.347227Z
true
sile/patricia_tree
https://github.com/sile/patricia_tree/blob/3191dba6c7fe30f502006e4c195a0d4c577a53e7/src/lib.rs
src/lib.rs
//! Memory-efficient data structures based on patricia tree (a.k.a, radix tree). //! //! A common prefixes of the keys in a patricia tree are represented by a shared path. //! So if the prefixes of the key set is highly redundant, //! the memory usage of the resulting patricia tree will be drastically less than //! mor...
rust
MIT
3191dba6c7fe30f502006e4c195a0d4c577a53e7
2026-01-04T20:24:05.347227Z
false
sile/patricia_tree
https://github.com/sile/patricia_tree/blob/3191dba6c7fe30f502006e4c195a0d4c577a53e7/src/serialization.rs
src/serialization.rs
use crate::node::{Flags, Node}; use crate::{BorrowedBytes, GenericPatriciaMap, GenericPatriciaSet}; use alloc::borrow::{Cow, ToOwned}; use alloc::vec::Vec; use core::borrow::Borrow; use core::marker::PhantomData; use serde::de::{Error, Visitor}; use serde::{Deserialize, Deserializer, Serialize, Serializer}; impl<T> Se...
rust
MIT
3191dba6c7fe30f502006e4c195a0d4c577a53e7
2026-01-04T20:24:05.347227Z
false
sile/patricia_tree
https://github.com/sile/patricia_tree/blob/3191dba6c7fe30f502006e4c195a0d4c577a53e7/src/tree.rs
src/tree.rs
use alloc::vec::Vec; use crate::{ BorrowedBytes, Bytes, node::{self, Node, NodeMut}, }; #[derive(Debug, Clone)] pub struct PatriciaTree<V> { root: Node<V>, len: usize, } impl<V> PatriciaTree<V> { pub fn new() -> Self { PatriciaTree { root: Node::root(), len: 0, ...
rust
MIT
3191dba6c7fe30f502006e4c195a0d4c577a53e7
2026-01-04T20:24:05.347227Z
false
sile/patricia_tree
https://github.com/sile/patricia_tree/blob/3191dba6c7fe30f502006e4c195a0d4c577a53e7/src/map.rs
src/map.rs
//! A map based on a patricia tree. use crate::node; #[cfg(any(test, feature = "serde"))] use crate::node::Node; use crate::tree::{self, PatriciaTree}; use crate::{BorrowedBytes, Bytes}; use alloc::borrow::ToOwned; use alloc::string::String; use alloc::vec::Vec; use core::fmt; use core::iter::FromIterator; use core::ma...
rust
MIT
3191dba6c7fe30f502006e4c195a0d4c577a53e7
2026-01-04T20:24:05.347227Z
false
sile/patricia_tree
https://github.com/sile/patricia_tree/blob/3191dba6c7fe30f502006e4c195a0d4c577a53e7/src/set.rs
src/set.rs
//! A set based on a patricia tree. use crate::Bytes; use crate::map::{self, GenericPatriciaMap}; #[cfg(any(feature = "serde", test))] use crate::node::Node; use alloc::string::String; use alloc::vec::Vec; use core::fmt; use core::iter::FromIterator; /// Patricia tree based set with [`Vec<u8>`] as key. pub type Patric...
rust
MIT
3191dba6c7fe30f502006e4c195a0d4c577a53e7
2026-01-04T20:24:05.347227Z
false
sile/patricia_tree
https://github.com/sile/patricia_tree/blob/3191dba6c7fe30f502006e4c195a0d4c577a53e7/benches/bench.rs
benches/bench.rs
use criterion::{BatchSize, Criterion, criterion_group, criterion_main}; use patricia_tree::PatriciaSet; use rand::{Rng, seq::IndexedRandom}; use std::{ collections::{BTreeSet, HashSet}, hint::black_box, }; fn bench_insertion(c: &mut Criterion) { let mut group = c.benchmark_group("insertion"); group.b...
rust
MIT
3191dba6c7fe30f502006e4c195a0d4c577a53e7
2026-01-04T20:24:05.347227Z
false
sile/patricia_tree
https://github.com/sile/patricia_tree/blob/3191dba6c7fe30f502006e4c195a0d4c577a53e7/examples/insert_lines.rs
examples/insert_lines.rs
use patricia_tree::PatriciaSet; use std::collections::{BTreeSet, HashSet}; use std::io::BufRead; fn main() -> noargs::Result<()> { let mut args = noargs::raw_args(); noargs::HELP_FLAG.take_help(&mut args); let kind = noargs::opt("kind") .doc("Data structure kindt") .ty("patricia | hash | b...
rust
MIT
3191dba6c7fe30f502006e4c195a0d4c577a53e7
2026-01-04T20:24:05.347227Z
false
hipstermojo/paperoni
https://github.com/hipstermojo/paperoni/blob/796a34a34c365bc06191bf634918b71eaee7bd5d/src/errors.rs
src/errors.rs
use std::fmt::{Debug, Display}; use flexi_logger::FlexiLoggerError; use thiserror::Error; #[derive(Error, Debug)] pub enum ErrorKind { #[error("[EpubError]: {0}")] EpubError(String), #[error("[HTTPError]: {0}")] HTTPError(String), #[error("[IOError]: {0}")] IOError(String), #[error("[UTF8E...
rust
MIT
796a34a34c365bc06191bf634918b71eaee7bd5d
2026-01-04T20:24:03.677608Z
false
hipstermojo/paperoni
https://github.com/hipstermojo/paperoni/blob/796a34a34c365bc06191bf634918b71eaee7bd5d/src/extractor.rs
src/extractor.rs
use itertools::Itertools; use kuchiki::{traits::*, NodeRef}; use crate::errors::PaperoniError; use crate::moz_readability::{MetaData, Readability}; /// A tuple of the url and an Option of the resource's MIME type pub type ResourceInfo = (String, Option<String>); pub struct Article { node_ref_opt: Option<NodeRef>...
rust
MIT
796a34a34c365bc06191bf634918b71eaee7bd5d
2026-01-04T20:24:03.677608Z
false
hipstermojo/paperoni
https://github.com/hipstermojo/paperoni/blob/796a34a34c365bc06191bf634918b71eaee7bd5d/src/html.rs
src/html.rs
use std::{ collections::{BTreeMap, HashSet}, fs::{self, File}, path::Path, }; use base64::encode; use comfy_table::{Attribute, Cell, CellAlignment, Color, ContentArrangement, Table}; use html5ever::{LocalName, Namespace, QualName}; use indicatif::{ProgressBar, ProgressStyle}; use kuchiki::{traits::*, NodeR...
rust
MIT
796a34a34c365bc06191bf634918b71eaee7bd5d
2026-01-04T20:24:03.677608Z
false
hipstermojo/paperoni
https://github.com/hipstermojo/paperoni/blob/796a34a34c365bc06191bf634918b71eaee7bd5d/src/epub.rs
src/epub.rs
use std::collections::HashMap; use std::fs::File; use comfy_table::{Attribute, Cell, CellAlignment, Color, ContentArrangement, Table}; use epub_builder::{EpubBuilder, EpubContent, TocElement, ZipLibrary}; use html5ever::tendril::fmt::Slice; use indicatif::{ProgressBar, ProgressStyle}; use kuchiki::NodeRef; use log::{d...
rust
MIT
796a34a34c365bc06191bf634918b71eaee7bd5d
2026-01-04T20:24:03.677608Z
false
hipstermojo/paperoni
https://github.com/hipstermojo/paperoni/blob/796a34a34c365bc06191bf634918b71eaee7bd5d/src/http.rs
src/http.rs
use async_std::io::prelude::*; use async_std::task; use async_std::{fs::File, stream}; use futures::StreamExt; use indicatif::ProgressBar; use log::warn; use log::{debug, info}; use url::Url; use crate::cli::AppConfig; use crate::errors::{ErrorKind, ImgError, PaperoniError}; use crate::extractor::Article; type HTMLRes...
rust
MIT
796a34a34c365bc06191bf634918b71eaee7bd5d
2026-01-04T20:24:03.677608Z
false
hipstermojo/paperoni
https://github.com/hipstermojo/paperoni/blob/796a34a34c365bc06191bf634918b71eaee7bd5d/src/cli.rs
src/cli.rs
use std::{fs, num::NonZeroUsize, path::Path}; use chrono::{DateTime, Local}; use clap::{load_yaml, App, ArgMatches}; use flexi_logger::LevelFilter as LogLevel; use itertools::Itertools; type Error = crate::errors::CliError<AppConfigBuilderError>; const DEFAULT_MAX_CONN: usize = 8; #[derive(derive_builder::Builder, ...
rust
MIT
796a34a34c365bc06191bf634918b71eaee7bd5d
2026-01-04T20:24:03.677608Z
false
hipstermojo/paperoni
https://github.com/hipstermojo/paperoni/blob/796a34a34c365bc06191bf634918b71eaee7bd5d/src/main.rs
src/main.rs
#[macro_use] extern crate lazy_static; use std::process::exit; use colored::Colorize; use comfy_table::presets::{UTF8_FULL, UTF8_HORIZONTAL_BORDERS_ONLY}; use comfy_table::{ContentArrangement, Table}; use http::download; use indicatif::{ProgressBar, ProgressStyle}; mod cli; mod epub; mod errors; mod extractor; mod h...
rust
MIT
796a34a34c365bc06191bf634918b71eaee7bd5d
2026-01-04T20:24:03.677608Z
false
hipstermojo/paperoni
https://github.com/hipstermojo/paperoni/blob/796a34a34c365bc06191bf634918b71eaee7bd5d/src/logs.rs
src/logs.rs
use std::fs; use chrono::{DateTime, Local}; use colored::*; use comfy_table::presets::UTF8_HORIZONTAL_BORDERS_ONLY; use comfy_table::{Cell, CellAlignment, ContentArrangement, Table}; use flexi_logger::{FileSpec, LevelFilter}; use log::error; use crate::errors::PaperoniError; pub fn display_summary( initial_artic...
rust
MIT
796a34a34c365bc06191bf634918b71eaee7bd5d
2026-01-04T20:24:03.677608Z
false
hipstermojo/paperoni
https://github.com/hipstermojo/paperoni/blob/796a34a34c365bc06191bf634918b71eaee7bd5d/src/moz_readability/regexes.rs
src/moz_readability/regexes.rs
/// This module contains regular expressions frequently used by moz_readability /// All regexes that only test if a `&str` matches the regex are preceded by the /// word "is_match". All other regexes are publicly accessible. use regex::Regex; pub fn is_match_byline(match_str: &str) -> bool { lazy_static! { ...
rust
MIT
796a34a34c365bc06191bf634918b71eaee7bd5d
2026-01-04T20:24:03.677608Z
false
hipstermojo/paperoni
https://github.com/hipstermojo/paperoni/blob/796a34a34c365bc06191bf634918b71eaee7bd5d/src/moz_readability/mod.rs
src/moz_readability/mod.rs
use std::collections::{BTreeMap, HashMap, HashSet}; use std::str::FromStr; use html5ever::{LocalName, Namespace, QualName}; use kuchiki::{ iter::{Descendants, Elements, Select}, traits::*, NodeData, NodeRef, }; use log::info; use url::Url; use crate::errors::{ErrorKind, PaperoniError}; const DEFAULT_CHAR...
rust
MIT
796a34a34c365bc06191bf634918b71eaee7bd5d
2026-01-04T20:24:03.677608Z
true
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_bundle/build.rs
crates/dc_bundle/build.rs
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_bundle/src/lib.rs
crates/dc_bundle/src/lib.rs
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_bundle/src/definition_file.rs
crates/dc_bundle/src/definition_file.rs
/* * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_bundle/src/definition.rs
crates/dc_bundle/src/definition.rs
use crate::variable::VariableMap; /* * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_bundle/src/definition/element.rs
crates/dc_bundle/src/definition/element.rs
/* * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_bundle/src/definition/view.rs
crates/dc_bundle/src/definition/view.rs
/* * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
true
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_bundle/src/definition/modifier.rs
crates/dc_bundle/src/definition/modifier.rs
/* * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_bundle/src/definition/layout.rs
crates/dc_bundle/src/definition/layout.rs
/* * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_bundle/src/definition/modifier/affine_transform.rs
crates/dc_bundle/src/definition/modifier/affine_transform.rs
// Copyright 2013 The Servo Project Developers. See the COPYRIGHT // file at the same directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your ...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_bundle/src/definition/modifier/layout_transform.rs
crates/dc_bundle/src/definition/modifier/layout_transform.rs
// Copyright 2013 The Servo Project Developers. See the COPYRIGHT // file at the same directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your ...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_jni/src/lib.rs
crates/dc_jni/src/lib.rs
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_jni/src/layout_manager.rs
crates/dc_jni/src/layout_manager.rs
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_jni/src/error.rs
crates/dc_jni/src/error.rs
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_jni/src/android_interface.rs
crates/dc_jni/src/android_interface.rs
/* * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_jni/src/jni.rs
crates/dc_jni/src/jni.rs
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_jni/src/error_map.rs
crates/dc_jni/src/error_map.rs
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_jni/src/android_interface/convert_request.rs
crates/dc_jni/src/android_interface/convert_request.rs
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_figma_import/src/scalableui_schema.rs
crates/dc_figma_import/src/scalableui_schema.rs
/* * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_figma_import/src/proxy_config.rs
crates/dc_figma_import/src/proxy_config.rs
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_figma_import/src/shader_schema.rs
crates/dc_figma_import/src/shader_schema.rs
/* * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_figma_import/src/lib.rs
crates/dc_figma_import/src/lib.rs
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_figma_import/src/svg.rs
crates/dc_figma_import/src/svg.rs
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_figma_import/src/transform_flexbox.rs
crates/dc_figma_import/src/transform_flexbox.rs
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
true
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_figma_import/src/reaction_schema.rs
crates/dc_figma_import/src/reaction_schema.rs
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
true
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_figma_import/src/document.rs
crates/dc_figma_import/src/document.rs
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
true
google/automotive-design-compose
https://github.com/google/automotive-design-compose/blob/4caea40f7dfc29cafb17c0cc981d1a5607ef0aad/crates/dc_figma_import/src/extended_layout_schema.rs
crates/dc_figma_import/src/extended_layout_schema.rs
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
rust
Apache-2.0
4caea40f7dfc29cafb17c0cc981d1a5607ef0aad
2026-01-04T19:58:26.365701Z
false