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 |
|---|---|---|---|---|---|---|---|---|
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/js-sys/tests/wasm/Math.rs | crates/js-sys/tests/wasm/Math.rs | use std::f64::consts::{FRAC_PI_3, LN_2, LOG10_2, PI};
use js_sys::*;
use wasm_bindgen_test::*;
macro_rules! assert_eq {
($a:expr, $b:expr) => {{
let (a, b) = (&$a, &$b);
if f64::is_infinite(*a) && f64::is_infinite(*b) {
assert!(a == b);
} else {
assert!(
... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/js-sys/tests/wasm/Iterator.rs | crates/js-sys/tests/wasm/Iterator.rs | use js_sys::*;
use wasm_bindgen::prelude::*;
use wasm_bindgen_test::*;
#[wasm_bindgen(module = "tests/wasm/Iterator.js")]
extern "C" {
fn get_iterable() -> JsValue;
fn get_not_iterable() -> JsValue;
fn get_symbol_iterator_throws() -> JsValue;
fn get_symbol_iterator_not_function() -> JsValue;
fn... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/js-sys/tests/wasm/Boolean.rs | crates/js-sys/tests/wasm/Boolean.rs | use js_sys::*;
use wasm_bindgen::JsCast;
use wasm_bindgen::JsValue;
use wasm_bindgen_test::*;
#[allow(deprecated)]
#[wasm_bindgen_test]
fn new_undefined() {
assert!(!Boolean::new(&JsValue::undefined()).value_of());
}
#[allow(deprecated)]
#[wasm_bindgen_test]
fn new_truly() {
assert!(Boolean::new(&JsValue::fro... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/js-sys/tests/wasm/Map.rs | crates/js-sys/tests/wasm/Map.rs | use js_sys::*;
use wasm_bindgen::JsCast;
use wasm_bindgen_test::*;
#[wasm_bindgen_test]
fn clear() {
let map = Map::new();
map.set(&"foo".into(), &"bar".into());
map.set(&"bar".into(), &"baz".into());
assert_eq!(map.size(), 2);
map.clear();
assert_eq!(map.size(), 0);
map.clear();
assert... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/js-sys/tests/wasm/ArrayIterator.rs | crates/js-sys/tests/wasm/ArrayIterator.rs | use js_sys::*;
use wasm_bindgen::JsValue;
use wasm_bindgen_test::*;
#[wasm_bindgen_test]
fn keys() {
let array = Array::new();
array.push(&JsValue::from(1));
array.push(&JsValue::from(2));
array.push(&JsValue::from(3));
array.push(&JsValue::from(4));
array.push(&JsValue::from(5));
let new_... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/js-sys/tests/wasm/BigInt.rs | crates/js-sys/tests/wasm/BigInt.rs | use js_sys::BigInt;
use wasm_bindgen::prelude::*;
use wasm_bindgen_test::wasm_bindgen_test;
/// `assert_eq!`, but the arguments are converted to `JsValue`s.
#[track_caller]
fn assert_jsvalue_eq(a: impl Into<JsValue>, b: impl Into<JsValue>) {
assert_eq!(a.into(), b.into());
}
#[wasm_bindgen_test]
fn from() {
/... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/js-sys/tests/common/mod.rs | crates/js-sys/tests/common/mod.rs | use js_sys::Array;
use wasm_bindgen::prelude::*;
use wasm_bindgen_test::*;
#[wasm_bindgen(module = "/tests/common/headless.js")]
extern "C" {
fn is_array_values_supported() -> bool;
}
#[wasm_bindgen]
extern "C" {
type ValuesIterator;
#[wasm_bindgen(method, structural)]
fn next(this: &ValuesIterator) -... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/js-sys/benches/array_interaction.rs | crates/js-sys/benches/array_interaction.rs | use js_sys::Uint8Array;
use wasm_bindgen_test::{wasm_bindgen_bench, Criterion};
#[wasm_bindgen_bench]
fn bench_array_interaction(c: &mut Criterion) {
c.bench_function("bench_to_uint8_array", |b| {
b.iter(|| Uint8Array::new_from_slice(&[0; 4096]))
})
.bench_function("bench_to_vec", |b| {
b.i... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/coverage.rs | crates/test/src/coverage.rs | use alloc::vec::Vec;
use wasm_bindgen::prelude::wasm_bindgen;
#[cfg(wasm_bindgen_unstable_test_coverage)]
#[wasm_bindgen]
pub fn __wbgtest_cov_dump() -> Option<Vec<u8>> {
let mut coverage = Vec::new();
// SAFETY: this function is not thread-safe, but our whole test runner is running single-threaded.
unsafe... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/lib.rs | crates/test/src/lib.rs | //! Runtime support for the `#[wasm_bindgen_test]` attribute
//!
//! More documentation can be found in the README for this crate!
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(wasm_bindgen_unstable_test_coverage, feature(coverage_attribute))]
#![cfg_attr(target_feature = "atomics", feature(thread_local))]
#!... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/node.rs | crates/test/src/rt/node.rs | //! Support for printing status information of a test suite in node.js
//!
//! This currently uses the same output as `libtest`, only reimplemented here
//! for node itself.
use alloc::string::String;
use wasm_bindgen::prelude::*;
/// Implementation of the `Formatter` trait for node.js
pub struct Node {}
#[wasm_bind... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/detect.rs | crates/test/src/rt/detect.rs | //! Runtime detection of whether we're in node.js or a browser.
use alloc::string::String;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
type This;
#[wasm_bindgen(method, getter, structural, js_name = self)]
fn self_(me: &This) -> Option<Scope>;
type Scope;
#[wasm_bindgen(method, get... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/browser.rs | crates/test/src/rt/browser.rs | //! Support for printing status information of a test suite in a browser.
//!
//! Currently this is quite simple, rendering the same as the console tests in
//! node.js. Output here is rendered in a `pre`, however.
use alloc::format;
use alloc::string::String;
use js_sys::Error;
use wasm_bindgen::prelude::*;
/// Impl... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/worker.rs | crates/test/src/rt/worker.rs | //! Support for printing status information of a test suite in a browser.
//!
//! Currently this is quite simple, rendering the same as the console tests in
//! node.js. Output here is rendered in a `pre`, however.
use alloc::format;
use alloc::string::String;
use js_sys::Error;
use wasm_bindgen::prelude::*;
/// Impl... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/mod.rs | crates/test/src/rt/mod.rs | //! Internal-only runtime module used for the `wasm_bindgen_test` crate.
//!
//! No API contained in this module will respect semver, these should all be
//! considered private APIs.
// # Architecture of `wasm_bindgen_test`
//
// This module can seem a bit funky, but it's intended to be the runtime support
// of the `... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/scoped_tls.rs | crates/test/src/rt/scoped_tls.rs | //! See <https://github.com/alexcrichton/scoped-tls/blob/0b6f66a582340bb3363f21a84b70ff40caa98774/src/lib.rs>.
use core::cell::Cell;
use core::marker::PhantomData;
/// `no_std` polyfill for [`scoped_tls`](https://crates.io/crates/scoped-tls).
#[macro_export]
macro_rules! scoped_thread_local {
(static $name:ident:... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/report.rs | crates/test/src/rt/criterion/report.rs | use super::estimate::ChangeEstimates;
use super::estimate::Estimate;
use super::estimate::Estimates;
use super::format;
use super::measurement::ValueFormatter;
use super::stats::univariate::outliers::tukey::LabeledSample;
use alloc::format;
use alloc::string::String;
use alloc::string::ToString;
use core::fmt;
use nu_a... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/estimate.rs | crates/test/src/rt/criterion/estimate.rs | use super::stats::Distribution;
use serde::{Deserialize, Serialize};
#[derive(Clone, PartialEq, Deserialize, Serialize, Debug)]
pub struct ConfidenceInterval {
pub confidence_level: f64,
pub lower_bound: f64,
pub upper_bound: f64,
}
#[derive(Clone, PartialEq, Deserialize, Serialize, Debug)]
pub struct Est... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/benchmark.rs | crates/test/src/rt/criterion/benchmark.rs | use super::SamplingMode;
use core::time::Duration;
// TODO: Move the benchmark config stuff to a separate module for easier use.
/// Struct containing all of the configuration options for a benchmark.
pub struct BenchmarkConfig {
pub confidence_level: f64,
pub measurement_time: Duration,
pub noise_thresho... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/analysis.rs | crates/test/src/rt/criterion/analysis.rs | use super::stats::bivariate::regression::Slope;
use super::stats::bivariate::Data;
use super::stats::univariate::Sample;
use super::stats::{Distribution, Tails};
use super::benchmark::BenchmarkConfig;
use super::estimate::{
build_estimates, ConfidenceInterval, Distributions, Estimate, Estimates, PointEstimates,
};... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/routine.rs | crates/test/src/rt/criterion/routine.rs | use super::benchmark::BenchmarkConfig;
use super::measurement::Measurement;
use super::report::{BenchmarkId, Report};
use super::{ActualSamplingMode, Bencher, Criterion};
use alloc::boxed::Box;
use alloc::vec::Vec;
use async_trait::async_trait;
use core::future::Future;
use core::marker::PhantomData;
use core::pin::Pin... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/measurement.rs | crates/test/src/rt/criterion/measurement.rs | //! This module defines a set of traits that can be used to plug different measurements (eg.
//! Unix's Processor Time, CPU or GPU performance counters, etc.) into Criterion.rs. It also
//! includes the [`WallTime`] struct which defines the default wall-clock time measurement.
use super::format::short;
use super::Thro... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/mod.rs | crates/test/src/rt/criterion/mod.rs | //! A statistics-driven micro-benchmarking library written in Rust.
//!
//! This crate is a microbenchmarking library which aims to provide strong
//! statistical confidence in detecting and estimating the size of performance
//! improvements and regressions, while also being easy to use.
//!
//! See
//! [the user guid... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/format.rs | crates/test/src/rt/criterion/format.rs | use alloc::format;
use alloc::string::String;
use libm::{fabs, pow};
pub fn change(pct: f64, signed: bool) -> String {
if signed {
format!("{:>+6}%", signed_short(pct * 1e2))
} else {
format!("{:>6}%", short(pct * 1e2))
}
}
pub fn time(ns: f64) -> String {
if ns < 1.0 {
format!... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/baseline.rs | crates/test/src/rt/criterion/baseline.rs | //! Record previous benchmark data
use serde::{Deserialize, Serialize};
use wasm_bindgen::prelude::wasm_bindgen;
use super::{estimate::Estimates, SavedSample};
use alloc::collections::BTreeMap;
use alloc::string::String;
use alloc::vec::Vec;
use core::cell::RefCell;
use wasm_bindgen::__rt::LazyCell;
#[cfg_attr(targe... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/compare.rs | crates/test/src/rt/criterion/compare.rs | use super::stats::univariate::Sample;
use super::stats::univariate::{self, mixed};
use super::stats::Distribution;
use super::benchmark::BenchmarkConfig;
use super::estimate::{
build_change_estimates, ChangeDistributions, ChangeEstimates, ChangePointEstimates, Estimates,
};
use super::report::BenchmarkId;
use supe... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/bencher.rs | crates/test/src/rt/criterion/bencher.rs | use super::measurement::Measurement;
use crate::__rt::web_time::Instant;
use core::future::Future;
use core::hint::black_box;
use core::time::Duration;
// ================================== MAINTENANCE NOTE =============================================
// Any changes made to either Bencher or AsyncBencher will have to... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/rand_util.rs | crates/test/src/rt/criterion/stats/rand_util.rs | use crate::__rt::web_time::{SystemTime, UNIX_EPOCH};
use core::cell::RefCell;
use oorandom::Rand64;
use wasm_bindgen::__rt::LazyCell;
pub type Rng = Rand64;
#[cfg_attr(target_feature = "atomics", thread_local)]
static SEED_RAND: LazyCell<RefCell<Rand64>> = LazyCell::new(|| {
RefCell::new(Rand64::new(
Syst... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/tuple.rs | crates/test/src/rt/criterion/stats/tuple.rs | //! Helper traits for tupling/untupling
use super::Distribution;
use alloc::vec::Vec;
/// Any tuple: `(A, B, ..)`
pub trait Tuple: Sized {
/// A tuple of distributions associated with this tuple
type Distributions: TupledDistributions<Item = Self>;
/// A tuple of vectors associated with this tuple
ty... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/mod.rs | crates/test/src/rt/criterion/stats/mod.rs | //! [Criterion]'s statistics library.
//!
//! [Criterion]: https://github.com/bheisler/criterion.rs
//!
//! **WARNING** This library is criterion's implementation detail and there no plans to stabilize
//! it. In other words, the API may break at any time without notice.
pub mod bivariate;
pub mod tuple;
pub mod univa... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/float.rs | crates/test/src/rt/criterion/stats/float.rs | //! Float trait
use cast::From;
use num_traits::float;
/// This is an extension of `num_traits::float::Float` that adds safe
/// casting and Sync + Send. Once `num_traits` has these features this
/// can be removed.
pub trait Float:
float::Float + From<usize, Output = Self> + From<f32, Output = Self> + Sync + Sen... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/univariate/mixed.rs | crates/test/src/rt/criterion/stats/univariate/mixed.rs | //! Mixed bootstrap
use super::super::float::Float;
use super::super::tuple::{Tuple, TupledDistributionsBuilder};
use super::Resamples;
use super::Sample;
use alloc::vec::Vec;
/// Performs a *mixed* two-sample bootstrap
pub fn bootstrap<A, T, S>(
a: &Sample<A>,
b: &Sample<A>,
nresamples: usize,
stati... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/univariate/resamples.rs | crates/test/src/rt/criterion/stats/univariate/resamples.rs | use core::mem;
use super::super::float::Float;
use super::super::rand_util::{new_rng, Rng};
use super::super::univariate::Sample;
use alloc::vec::Vec;
pub struct Resamples<'a, A>
where
A: Float,
{
rng: Rng,
sample: &'a [A],
stage: Option<Vec<A>>,
}
#[allow(clippy::should_implement_trait)]
impl<'a, A... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/univariate/percentiles.rs | crates/test/src/rt/criterion/stats/univariate/percentiles.rs | use super::super::float::Float;
use alloc::boxed::Box;
use cast::usize;
/// A "view" into the percentiles of a sample
pub struct Percentiles<A>(Box<[A]>)
where
A: Float;
// TODO(rust-lang/rfcs#735) move this `impl` into a private percentiles module
impl<A> Percentiles<A>
where
A: Float,
usize: cast::From<... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/univariate/mod.rs | crates/test/src/rt/criterion/stats/univariate/mod.rs | //! Univariate analysis
pub mod mixed;
pub mod outliers;
mod percentiles;
mod resamples;
mod sample;
use core::cmp;
use super::float::Float;
use super::tuple::{Tuple, TupledDistributionsBuilder};
use libm::{ceil, sqrt};
use resamples::Resamples;
pub use percentiles::Percentiles;
pub use sample::Sample;
/// Perform... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/univariate/sample.rs | crates/test/src/rt/criterion/stats/univariate/sample.rs | use alloc::vec::Vec;
use core::{mem, ops};
use super::super::float::Float;
use super::super::sum;
use super::super::tuple::{Tuple, TupledDistributionsBuilder};
use super::super::univariate::Percentiles;
use super::super::univariate::Resamples;
/// A collection of data points drawn from a population
///
/// Invariants... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/univariate/outliers/tukey.rs | crates/test/src/rt/criterion/stats/univariate/outliers/tukey.rs | //! Tukey's method
//!
//! The original method uses two "fences" to classify the data. All the observations "inside" the
//! fences are considered "normal", and the rest are considered outliers.
//!
//! The fences are computed from the quartiles of the sample, according to the following formula:
//!
//! ``` ignore
//! ... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/univariate/outliers/mod.rs | crates/test/src/rt/criterion/stats/univariate/outliers/mod.rs | //! Classification of outliers
//!
//! WARNING: There's no formal/mathematical definition of what an outlier actually is. Therefore,
//! all outlier classifiers are *subjective*, however some classifiers that have become *de facto*
//! standard are provided here.
pub mod tukey;
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/bivariate/resamples.rs | crates/test/src/rt/criterion/stats/bivariate/resamples.rs | use super::super::bivariate::Data;
use super::super::float::Float;
use super::super::rand_util::{new_rng, Rng};
use alloc::vec::Vec;
pub struct Resamples<'a, X, Y>
where
X: 'a + Float,
Y: 'a + Float,
{
rng: Rng,
data: (&'a [X], &'a [Y]),
stage: Option<(Vec<X>, Vec<Y>)>,
}
#[allow(clippy::should_i... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/bivariate/regression.rs | crates/test/src/rt/criterion/stats/bivariate/regression.rs | //! Regression analysis
use super::super::bivariate::Data;
use super::super::dot;
use super::super::float::Float;
/// A straight line that passes through the origin `y = m * x`
#[derive(Clone, Copy)]
pub struct Slope<A>(pub A)
where
A: Float;
impl<A> Slope<A>
where
A: Float,
{
/// Fits the data to a stra... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/criterion/stats/bivariate/mod.rs | crates/test/src/rt/criterion/stats/bivariate/mod.rs | //! Bivariate analysis
pub mod regression;
mod resamples;
use super::bivariate::resamples::Resamples;
use super::float::Float;
use super::tuple::{Tuple, TupledDistributionsBuilder};
use super::univariate::Sample;
/// Bivariate `(X, Y)` data
///
/// Invariants:
///
/// - No `NaN`s in the data
/// - At least two data ... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/web_time/instant.rs | crates/test/src/rt/web_time/instant.rs | //! Re-implementation of [`std::time::Instant`].
//!
//! See <https://github.com/rust-lang/rust/blob/1.83.0/library/std/src/time.rs#L271-L468>.
use core::ops::Sub;
use core::time::Duration;
use super::js::PERFORMANCE;
#[cfg(target_feature = "atomics")]
use super::js::TIME_ORIGIN;
/// See [`std::time::Instant`].
#[de... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/web_time/system_time.rs | crates/test/src/rt/web_time/system_time.rs | //! Re-implementation of [`std::time::SystemTime`].
//!
//! See <https://github.com/rust-lang/rust/blob/1.83.0/library/std/src/time.rs#L470-L707>.
use core::time::Duration;
use super::js::Date;
/// See [`std::time::SystemTime`].
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct SystemTim... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/web_time/js.rs | crates/test/src/rt/web_time/js.rs | //! Bindings to the JS API.
use wasm_bindgen::prelude::wasm_bindgen;
#[wasm_bindgen]
extern "C" {
/// Type for the [`Performance` object](https://developer.mozilla.org/en-US/docs/Web/API/Performance).
pub(super) type Performance;
/// Holds the [`Performance`](https://developer.mozilla.org/en-US/docs/Web/... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/src/rt/web_time/mod.rs | crates/test/src/rt/web_time/mod.rs | mod instant;
mod js;
mod system_time;
pub use instant::Instant;
pub use system_time::SystemTime;
pub const UNIX_EPOCH: SystemTime = SystemTime::UNIX_EPOCH;
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/tests/coverage_path.rs | crates/test/tests/coverage_path.rs | #[wasm_bindgen_test::wasm_bindgen_test]
fn test_coverage_path() {
fn asssert<'a>(env: impl Into<Option<&'a str>>, result: &str) {
let env: Option<&str> = env.into();
assert_eq!(
wasm_bindgen_test::__rt::node::__wbgtest_coverage_path(
env.map(|x| x.to_string()),
... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/tests/node.rs | crates/test/tests/node.rs | #[wasm_bindgen_test::wasm_bindgen_test]
fn test() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/tests/browser.rs | crates/test/tests/browser.rs | wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
#[wasm_bindgen_test::wasm_bindgen_test]
fn test() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/tests/dedicated.rs | crates/test/tests/dedicated.rs | wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_dedicated_worker);
#[wasm_bindgen_test::wasm_bindgen_test]
fn test() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/tests/shared.rs | crates/test/tests/shared.rs | wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_shared_worker);
#[wasm_bindgen_test::wasm_bindgen_test]
fn test() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/sample/src/lib.rs | crates/test/sample/src/lib.rs | use js_sys::Promise;
use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll};
use std::time::Duration;
use wasm_bindgen::prelude::*;
use wasm_bindgen_futures::JsFuture;
pub struct Timeout {
id: JsValue,
inner: JsFuture,
}
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(js_name = setTimeout)... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/sample/tests/node.rs | crates/test/sample/tests/node.rs | pub mod common;
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/sample/tests/browser.rs | crates/test/sample/tests/browser.rs | wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
pub mod common;
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/test/sample/tests/common/mod.rs | crates/test/sample/tests/common/mod.rs | use sample::Timeout;
use std::time::Duration;
use wasm_bindgen_test::*;
#[wasm_bindgen_test]
fn pass() {
console_log!("DO NOT SEE ME");
}
#[wasm_bindgen_test]
async fn pass_after_2s() {
console_log!("immediate log");
Timeout::new(Duration::from_secs(1)).await;
console_log!("log after 1s");
Timeout... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/msrv/resolver/src/lib.rs | crates/msrv/resolver/src/lib.rs | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false | |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/msrv/lib/src/lib.rs | crates/msrv/lib/src/lib.rs | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false | |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/msrv/cli/src/lib.rs | crates/msrv/cli/src/lib.rs | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false | |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/src/lib.rs | crates/macro/src/lib.rs | #![doc(html_root_url = "https://docs.rs/wasm-bindgen-macro/0.2")]
extern crate proc_macro;
use proc_macro::TokenStream;
use quote::quote;
/// A list of all the attributes can be found here: https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/index.html
#[proc_macro_attribute]
pub fn wasm_bindgen(attr: T... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/tests/ui.rs | crates/macro/tests/ui.rs | #[test]
fn ui() {
let t = trybuild::TestCases::new();
t.compile_fail("ui-tests/*.rs");
}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/invalid-self-fn-attrs.rs | crates/macro/ui-tests/invalid-self-fn-attrs.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub struct A {
inner: u32,
}
#[wasm_bindgen]
impl A {
#[wasm_bindgen]
pub fn method_with_self_attr1(
#[wasm_bindgen(unchecked_param_type = "number")] &self,
arg: u32,
) -> JsValue {
(self.inner + arg).into()
}
#[wasm_bindge... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/invalid-self.rs | crates/macro/ui-tests/invalid-self.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub struct A {
data: u32,
}
// oh no, I forgot to add `#[wasm_bindgen]` to the impl block
impl A {
#[wasm_bindgen(js_name = bar)]
pub fn foo(&self) {}
}
#[wasm_bindgen]
extern "C" {
type MyClass;
// oops, I mixed up `self` and `this`
#[wasm_bindg... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/main-debug.rs | crates/macro/ui-tests/main-debug.rs | use std::fmt;
use wasm_bindgen::prelude::*;
#[wasm_bindgen(main)]
fn main() -> Result<(), Test> {
unimplemented!()
}
struct Test;
impl fmt::Debug for Test {
fn fmt(&self, _f: &mut fmt::Formatter<'_>) -> fmt::Result {
unimplemented!()
}
}
#[wasm_bindgen(main)]
fn fail() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/bad-signatures.rs | crates/macro/ui-tests/bad-signatures.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn foo() -> &u32 {}
#[wasm_bindgen]
extern "C" {
fn foo(Foo(x): Foo);
fn foo() -> &u32;
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/invalid-imports.rs | crates/macro/ui-tests/invalid-imports.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
type A;
fn f() -> &'static u32;
#[wasm_bindgen(method)]
fn f1();
#[wasm_bindgen(method)]
fn f2(x: u32);
#[wasm_bindgen(method)]
fn f3(x: &&u32);
#[wasm_bindgen(method)]
fn f4(x: &foo::Bar);
#[wasm_bindgen(method)]
... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/main-unit.rs | crates/macro/ui-tests/main-unit.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen(main)]
fn main() -> () {}
#[wasm_bindgen(main)]
fn fail() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/invalid-attr.rs | crates/macro/ui-tests/invalid-attr.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen(x)]
pub fn foo() {}
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(y)]
fn bar();
#[wasm_bindgen { }]
fn bar();
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/async-errors.rs | crates/macro/ui-tests/async-errors.rs | #![allow(unreachable_code)]
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub struct MyType;
#[wasm_bindgen]
pub async fn good1() {
loop {}
}
#[wasm_bindgen]
pub async fn good2() -> JsValue {
loop {}
}
#[wasm_bindgen]
pub async fn good3() -> u32 {
loop {}
}
#[wasm_bindgen]
pub async fn good4() -> MyType {... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/no-ret-fn-attr.rs | crates/macro/ui-tests/no-ret-fn-attr.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen(unchecked_return_type = "number")]
pub fn no_ret_fn1() {}
#[wasm_bindgen(return_description = "some description")]
pub async fn no_ret_fn2() {}
#[wasm_bindgen]
pub struct A {}
#[wasm_bindgen]
impl A {
#[wasm_bindgen(unchecked_return_type = "number")]
pub async fn... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/import-local.rs | crates/macro/ui-tests/import-local.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen(module = "./foo.js")]
extern "C" {
fn wut();
}
#[wasm_bindgen(module = "../foo.js")]
extern "C" {
fn wut2();
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/wasm-bindgen.rs | crates/macro/ui-tests/wasm-bindgen.rs | extern crate wasm_bindgen as extern_test;
use wasm_bindgen::prelude::*;
mod test {
pub use wasm_bindgen as test;
pub use wasm_bindgen;
}
#[wasm_bindgen(wasm_bindgen = wasm_bindgen)]
pub fn good1() {}
#[wasm_bindgen(wasm_bindgen = ::wasm_bindgen)]
pub fn good2() {}
#[wasm_bindgen(wasm_bindgen = test::wasm_b... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/traits-not-implemented.rs | crates/macro/ui-tests/traits-not-implemented.rs | use wasm_bindgen::prelude::*;
struct A;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen]
pub fn foo(a: A);
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/invalid-enums.rs | crates/macro/ui-tests/invalid-enums.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
enum A {}
#[wasm_bindgen]
pub enum B {
D(u32),
}
#[wasm_bindgen]
pub enum C {
X = 1 + 3,
}
#[wasm_bindgen]
pub enum D {
X = 4294967296,
}
#[wasm_bindgen]
pub enum E {
A = 1,
B = "foo",
}
#[wasm_bindgen]
pub enum F {
A = "foo",
B = 1,
}
#[w... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/main-async.rs | crates/macro/ui-tests/main-async.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen(main)]
async fn main() {}
#[wasm_bindgen(main)]
fn fail() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/main-infallible.rs | crates/macro/ui-tests/main-infallible.rs | use std::convert::Infallible;
use wasm_bindgen::prelude::*;
#[wasm_bindgen(main)]
fn main() -> Infallible {
unimplemented!()
}
#[wasm_bindgen(main)]
fn fail() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/link-to.rs | crates/macro/ui-tests/link-to.rs | fn good1() -> String {
wasm_bindgen::link_to!(inline_js = "console.log('Hello world!');")
}
fn good2() -> String {
wasm_bindgen::link_to!(raw_module = "./foo.js")
}
fn bad1() -> String {
wasm_bindgen::link_to!(module = "package/foo.js")
}
fn bad2() -> String {
wasm_bindgen::link_to!(raw_module = "pac... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/invalid-setter.rs | crates/macro/ui-tests/invalid-setter.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
type A;
#[wasm_bindgen(setter, method)]
fn a(this: &A, b: i32);
#[wasm_bindgen(setter = x, method)]
fn b(this: &A, b: i32);
#[wasm_bindgen(setter, method, js_name = x)]
fn c(this: &A, b: i32);
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/invalid-static-string.rs | crates/macro/ui-tests/invalid-static-string.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[rustfmt::skip]
extern "C" {
#[wasm_bindgen(thread_local_v2, static_string)]
static FOO: JsValue = "test";
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/structural-and-final.rs | crates/macro/ui-tests/structural-and-final.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
type Foo;
#[wasm_bindgen(method, structural, final)]
fn bar(this: &Foo);
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/invalid-methods.rs | crates/macro/ui-tests/invalid-methods.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub struct A;
#[wasm_bindgen]
default impl A {}
#[wasm_bindgen]
unsafe impl A {}
#[wasm_bindgen]
impl Clone for A {}
#[wasm_bindgen]
impl<T> A {}
#[wasm_bindgen]
impl &'static A {}
macro_rules! x {
() => {};
}
#[wasm_bindgen]
impl A {
const X: u32 = 3;
t... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/struct-fields.rs | crates/macro/ui-tests/struct-fields.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
pub type Foo;
}
#[wasm_bindgen]
struct Bar {
pub a: Foo,
#[wasm_bindgen(getter_with_clone)]
pub b: Foo,
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/start-function.rs | crates/macro/ui-tests/start-function.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen(start)]
fn foo() {}
#[wasm_bindgen(start)]
fn foo2(x: u32) {}
#[wasm_bindgen(start)]
fn foo3<T>() {}
#[wasm_bindgen(start)]
fn foo4() -> Result<(), JsValue> {
Ok(())
}
#[wasm_bindgen(start)]
fn foo5() -> Result<JsValue, ()> {
Err(())
}
#[wasm_bindgen(start)]
fn... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/invalid-fn-arg-name.rs | crates/macro/ui-tests/invalid-fn-arg-name.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn fn_with_invalid_arg_name1(#[wasm_bindgen(js_name = "*firstArg")] arg: u32) -> JsValue {
arg.into()
}
#[wasm_bindgen]
pub fn fn_with_invalid_arg_name2(#[wasm_bindgen(js_name = "#firstArg")] arg: u32) -> JsValue {
arg.into()
}
#[wasm_bindgen]
pub fn fn_with_... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/unused-fn-attrs.rs | crates/macro/ui-tests/unused-fn-attrs.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn fn_with_unused_attr1(
#[wasm_bindgen(js_name = "firstArg", js_name = "anotherFirstArg")] arg: u32,
) -> JsValue {
arg.into()
}
#[wasm_bindgen]
pub async fn fn_with_unused_attr2(
#[wasm_bindgen(unchecked_param_type = "number", unchecked_param_type = "big... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/pub-not-copy.rs | crates/macro/ui-tests/pub-not-copy.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub struct A {
pub field: String,
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/unsupported-options.rs | crates/macro/ui-tests/unsupported-options.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub struct RustStruct {
data: u32,
}
#[wasm_bindgen]
impl RustStruct {
pub fn instance_method(&self) {}
fn priv_instance_method(&self) {}
pub fn static_method() {}
#[wasm_bindgen(constructor)]
pub async fn new() -> Self {
Self { data: 0 }
... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/illegal-char-fn-attrs.rs | crates/macro/ui-tests/illegal-char-fn-attrs.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn fn_with_illegal_char_attr1(
#[wasm_bindgen(unchecked_param_type = "abcd */firstArg")] arg1: u32,
) -> JsValue {
arg1.into()
}
#[wasm_bindgen]
pub async fn fn_with_illegal_char_attr2(
#[wasm_bindgen(unchecked_param_type = "num*/ber")] arg1: u32,
) -> JsV... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/unused-attributes.rs | crates/macro/ui-tests/unused-attributes.rs | #![deny(unused_variables)]
use wasm_bindgen::prelude::*;
struct A {}
#[wasm_bindgen]
impl A {
#[wasm_bindgen(method)]
pub fn foo() {}
}
#[wasm_bindgen]
pub struct MyStruct {
hello: String,
}
#[wasm_bindgen(getter, typescript_custom_section)]
pub const FOO: &'static str = "FOO";
#[wasm_bindgen(readonly... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/invalid-items.rs | crates/macro/ui-tests/invalid-items.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
fn foo() {}
#[wasm_bindgen]
pub const fn foo2() {}
#[wasm_bindgen]
struct Foo<T>(T);
#[wasm_bindgen]
#[rustfmt::skip]
extern "C" {
static mut FOO: u32;
#[wasm_bindgen(static_string)]
static FOO2: JsString;
#[wasm_bindgen(thread_local_v2, static_string)... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/missing-catch.rs | crates/macro/ui-tests/missing-catch.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen]
pub fn foo() -> Result<JsValue, JsValue>;
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/attribute-fails-to-parse.rs | crates/macro/ui-tests/attribute-fails-to-parse.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen(nonsense)]
pub fn foo() {}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/import-keyword.rs | crates/macro/ui-tests/import-keyword.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
type A;
// directly import function with reserved keywords
#[wasm_bindgen]
fn function();
// directly import function with reserved keywords
#[wasm_bindgen(js_name = "var")]
fn keyword_var();
// this is fine, because it's a me... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/main.rs | crates/macro/ui-tests/main.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen(main)]
fn main() {}
#[wasm_bindgen(main)]
fn fail() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/main-jsvalue.rs | crates/macro/ui-tests/main-jsvalue.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen(main)]
fn main() -> Result<(), JsValue> {
unimplemented!()
}
#[wasm_bindgen(main)]
fn fail() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/unknown-type-in-import.rs | crates/macro/ui-tests/unknown-type-in-import.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen]
pub fn foo(a: A);
}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/macro/ui-tests/non-public-function.rs | crates/macro/ui-tests/non-public-function.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
fn foo() {}
fn main() {}
| rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/web-sys/src/lib.rs | crates/web-sys/src/lib.rs | //! Raw API bindings for Web APIs
//!
//! This is a procedurally generated crate from browser WebIDL which provides a
//! binding to all APIs that browsers provide on the web.
//!
//! This crate by default contains very little when compiled as almost all of
//! its exposed APIs are gated by Cargo features. The exhausti... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/web-sys/src/features/gen_GpuInternalError.rs | crates/web-sys/src/features/gen_GpuInternalError.rs | #![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = GpuError , extends = :: js_sys :: Object , js_name = GPUInternalError , typescript_type = "GPUInternalError")]
#[derive(Debug, Clone,... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/web-sys/src/features/gen_SvgPointList.rs | crates/web-sys/src/features/gen_SvgPointList.rs | #![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGPointList , typescript_type = "SVGPointList")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `SvgPointList` class."]
... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/web-sys/src/features/gen_Clients.rs | crates/web-sys/src/features/gen_Clients.rs | #![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = Clients , typescript_type = "Clients")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `Clients` class."]
#[doc = ""]
... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
wasm-bindgen/wasm-bindgen | https://github.com/wasm-bindgen/wasm-bindgen/blob/dda4821ee2fbcaa7adc58bc8c385ed8d3627a272/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs | crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs | #![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = HmacDerivedKeyParams)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `HmacDerivedKeyParams` dictionary."]
#[doc = ""]... | rust | Apache-2.0 | dda4821ee2fbcaa7adc58bc8c385ed8d3627a272 | 2026-01-04T15:46:52.814516Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.