Sha256: 0ce9fcba05a68301474fe30a71824650d05dcb8f04405fe9fc6b9326229f7db0

Contents?: true

Size: 1.29 KB

Versions: 8

Compression:

Stored size: 1.29 KB

Contents

#[cfg(not(all(feature = "std", target_arch = "x86_64")))]
pub use crate::packed::teddy::fallback::{Builder, Teddy};
#[cfg(all(feature = "std", target_arch = "x86_64"))]
pub use crate::packed::teddy::{compile::Builder, runtime::Teddy};

#[cfg(all(feature = "std", target_arch = "x86_64"))]
mod compile;
#[cfg(all(feature = "std", target_arch = "x86_64"))]
mod runtime;

#[cfg(not(all(feature = "std", target_arch = "x86_64")))]
mod fallback {
    use crate::{packed::pattern::Patterns, Match};

    #[derive(Clone, Debug, Default)]
    pub struct Builder(());

    impl Builder {
        pub fn new() -> Builder {
            Builder(())
        }

        pub fn build(&self, _: &Patterns) -> Option<Teddy> {
            None
        }

        pub fn fat(&mut self, _: Option<bool>) -> &mut Builder {
            self
        }

        pub fn avx(&mut self, _: Option<bool>) -> &mut Builder {
            self
        }
    }

    #[derive(Clone, Debug)]
    pub struct Teddy(());

    impl Teddy {
        pub fn find_at(
            &self,
            _: &Patterns,
            _: &[u8],
            _: usize,
        ) -> Option<Match> {
            None
        }

        pub fn minimum_len(&self) -> usize {
            0
        }

        pub fn memory_usage(&self) -> usize {
            0
        }
    }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-13.0.0 ./ext/cargo-vendor/aho-corasick-1.0.4/src/packed/teddy/mod.rs
wasmtime-12.0.1 ./ext/cargo-vendor/aho-corasick-1.0.4/src/packed/teddy/mod.rs
wasmtime-12.0.0 ./ext/cargo-vendor/aho-corasick-1.0.4/src/packed/teddy/mod.rs
wasmtime-11.0.0 ./ext/cargo-vendor/aho-corasick-1.0.4/src/packed/teddy/mod.rs
wasmtime-10.0.1 ./ext/cargo-vendor/aho-corasick-1.0.3/src/packed/teddy/mod.rs
wasmtime-10.0.0 ./ext/cargo-vendor/aho-corasick-1.0.3/src/packed/teddy/mod.rs
wasmtime-9.0.4 ./ext/cargo-vendor/aho-corasick-1.0.3/src/packed/teddy/mod.rs
wasmtime-9.0.1 ./ext/cargo-vendor/aho-corasick-1.0.1/src/packed/teddy/mod.rs