Skip to content

Commit 3234e73

Browse files
committed
Add vendored sources
1 parent f1f7481 commit 3234e73

File tree

1,282 files changed

+546705
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,282 files changed

+546705
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"files":{".cargo_vcs_info.json":"ace303bf25937bf488919e5461f3994d1b88a19a40465ec8342c63af89cbebf7",".github/FUNDING.yml":"0c65f392d32a8639ba7986bbb42ca124505b462122382f314c89d84c95dd27f1",".github/workflows/ci.yml":"0605d9327a4633916dc789008d5686c692656bb3e1ee57f821f8537e9ad7d7b4",".vim/coc-settings.json":"8237c8f41db352b0d83f1bb10a60bc2f60f56f3234afbf696b4075c8d4d62d9b","COPYING":"01c266bced4a434da0051174d6bee16a4c82cf634e2679b6155d40d75012390f","Cargo.lock":"395d3e76f284190cef50c807ab2f00b9a5d388fde7a7bf88b73b02ed9fd346d1","Cargo.toml":"9384d7c725c5c2ebc8adc602081e7cbce8b214693e9e27edef1c40f33e925810","Cargo.toml.orig":"05304eb8b8821d48c0c4d2e991b9ed0f1a0b68cb70afb8881b81c4c317969663","DESIGN.md":"59c960e1b73b1d7fb41e4df6c0c1b1fcf44dd2ebc8a349597a7d0595f8cb5130","LICENSE-MIT":"0f96a83840e146e43c0ec96a22ec1f392e0680e6c1226e6f3ba87e0740af850f","README.md":"afc4d559a98cf190029af0bf320fc0022725e349cd2a303aac860254e28f3c53","UNLICENSE":"7e12e5df4bae12cb21581ba157ced20e1986a0508dd10d0e8a4ab9a4cf94e85c","rustfmt.toml":"1ca600239a27401c4a43f363cf3f38183a212affc1f31bff3ae93234bbaec228","src/ahocorasick.rs":"c699c07df70be45c666e128509ad571a7649d2073e4ae16ac1efd6793c9c6890","src/automaton.rs":"22258a3e118672413119f8f543a9b912cce954e63524575c0ebfdf9011f9c2dd","src/dfa.rs":"197075923eb9d760a552f4e8652310fd4f657736613a9b1444ae05ef5d525da3","src/lib.rs":"66dea84d227f269b2f14ecc8109a97e96245b56c22eef0e8ce03b2343b8d6e66","src/macros.rs":"c6c52ae05b24433cffaca7b78b3645d797862c5d5feffddf9f54909095ed6e05","src/nfa/contiguous.rs":"f435c131ce84927e5600109722d006533ea21442dddaf18e03286d8caed82389","src/nfa/mod.rs":"ee7b3109774d14bbad5239c16bb980dd6b8185ec136d94fbaf2f0dc27d5ffa15","src/nfa/noncontiguous.rs":"de94f02b04efd8744fb096759a8897c22012b0e0ca3ace161fd87c71befefe04","src/packed/api.rs":"2197077ff7d7c731ae03a72bed0ae52d89fee56c5564be076313c9a573ce5013","src/packed/ext.rs":"66be06fde8558429da23a290584d4b9fae665bf64c2578db4fe5f5f3ee864869","src/packed/mod.rs":"0020cd6f07ba5c8955923a9516d7f758864260eda53a6b6f629131c45ddeec62","src/packed/pattern.rs":"0e4bca57d4b941495d31fc8246ad32904eed0cd89e3cda732ad35f4deeba3bef","src/packed/rabinkarp.rs":"403146eb1d838a84601d171393542340513cd1ee7ff750f2372161dd47746586","src/packed/teddy/README.md":"3a43194b64e221543d885176aba3beb1224a927385a20eca842daf6b0ea2f342","src/packed/teddy/builder.rs":"08ec116a4a842a2bb1221d296a2515ef3672c54906bed588fb733364c07855d3","src/packed/teddy/generic.rs":"ea252ab05b32cea7dd9d71e332071d243db7dd0362e049252a27e5881ba2bf39","src/packed/teddy/mod.rs":"17d741f7e2fb9dbac5ba7d1bd4542cf1e35e9f146ace728e23fe6bbed20028b2","src/packed/tests.rs":"8e2f56eb3890ed3876ecb47d3121996e416563127b6430110d7b516df3f83b4b","src/packed/vector.rs":"70c325cfa6f7c5c4c9a6af7b133b75a29e65990a7fe0b9a4c4ce3c3d5a0fe587","src/tests.rs":"c68192ab97b6161d0d6ee96fefd80cc7d14e4486ddcd8d1f82b5c92432c24ed5","src/transducer.rs":"02daa33a5d6dac41dcfd67f51df7c0d4a91c5131c781fb54c4de3520c585a6e1","src/util/alphabet.rs":"6dc22658a38deddc0279892035b18870d4585069e35ba7c7e649a24509acfbcc","src/util/buffer.rs":"f9e37f662c46c6ecd734458dedbe76c3bb0e84a93b6b0117c0d4ad3042413891","src/util/byte_frequencies.rs":"2fb85b381c038c1e44ce94294531cdcd339dca48b1e61f41455666e802cbbc9e","src/util/debug.rs":"ab301ad59aa912529cb97233a54a05914dd3cb2ec43e6fec7334170b97ac5998","src/util/error.rs":"ecccd60e7406305023efcc6adcc826eeeb083ab8f7fbfe3d97469438cd4c4e5c","src/util/int.rs":"e264e6abebf5622b59f6500210773db36048371c4e509c930263334095959a52","src/util/mod.rs":"7ab28d11323ecdbd982087f32eb8bceeee84f1a2583f3aae27039c36d58cf12c","src/util/prefilter.rs":"183e32aa9951d9957f89062e4a6ae7235df7060722a3c91995a3d36db5a98111","src/util/primitives.rs":"f89f3fa1d8db4e37de9ca767c6d05e346404837cade6d063bba68972fafa610b","src/util/remapper.rs":"9f12d911583a325c11806eeceb46d0dfec863cfcfa241aed84d31af73da746e5","src/util/search.rs":"6af803e08b8b8c8a33db100623f1621b0d741616524ce40893d8316897f27ffe","src/util/special.rs":"7d2f9cb9dd9771f59816e829b2d96b1239996f32939ba98764e121696c52b146"},"package":"ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "17f8b32e3b7c845ef3c5429b823804f552f14ec9"
4+
},
5+
"path_in_vcs": ""
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [BurntSushi]
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
name: ci
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: '00 01 * * *'
9+
10+
# The section is needed to drop write-all permissions that are granted on
11+
# `schedule` event. By specifying any permission explicitly all others are set
12+
# to none. By using the principle of least privilege the damage a compromised
13+
# workflow can do (because of an injection or compromised third party tool or
14+
# action) is restricted. Currently the worklow doesn't need any additional
15+
# permission except for pulling the code. Adding labels to issues, commenting
16+
# on pull-requests, etc. may need additional permissions:
17+
#
18+
# Syntax for this section:
19+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
20+
#
21+
# Reference for how to assign permissions on a job-by-job basis:
22+
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
23+
#
24+
# Reference for available permissions that we can enable if needed:
25+
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
26+
permissions:
27+
# to fetch code (actions/checkout)
28+
contents: read
29+
30+
jobs:
31+
test:
32+
name: test
33+
env:
34+
# For some builds, we use cross to test on 32-bit and big-endian
35+
# systems.
36+
CARGO: cargo
37+
# When CARGO is set to CROSS, TARGET is set to `--target matrix.target`.
38+
# Note that we only use cross on Linux, so setting a target on a
39+
# different OS will just use normal cargo.
40+
TARGET:
41+
# Bump this as appropriate. We pin to a version to make sure CI
42+
# continues to work as cross releases in the past have broken things
43+
# in subtle ways.
44+
CROSS_VERSION: v0.2.5
45+
runs-on: ${{ matrix.os }}
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
include:
50+
- build: pinned
51+
os: ubuntu-latest
52+
rust: 1.60.0
53+
- build: stable
54+
os: ubuntu-latest
55+
rust: stable
56+
- build: stable-x86
57+
os: ubuntu-latest
58+
rust: stable
59+
target: i686-unknown-linux-gnu
60+
- build: stable-aarch64
61+
os: ubuntu-latest
62+
rust: stable
63+
target: aarch64-unknown-linux-gnu
64+
- build: stable-powerpc64
65+
os: ubuntu-latest
66+
rust: stable
67+
target: powerpc64-unknown-linux-gnu
68+
- build: stable-s390x
69+
os: ubuntu-latest
70+
rust: stable
71+
target: s390x-unknown-linux-gnu
72+
- build: beta
73+
os: ubuntu-latest
74+
rust: beta
75+
- build: nightly
76+
os: ubuntu-latest
77+
rust: nightly
78+
- build: macos
79+
os: macos-latest
80+
rust: stable
81+
- build: win-msvc
82+
os: windows-latest
83+
rust: stable
84+
- build: win-gnu
85+
os: windows-latest
86+
rust: stable-x86_64-gnu
87+
steps:
88+
- name: Checkout repository
89+
uses: actions/checkout@v3
90+
- name: Install Rust
91+
uses: dtolnay/rust-toolchain@master
92+
with:
93+
toolchain: ${{ matrix.rust }}
94+
- name: Install and configure Cross
95+
if: matrix.os == 'ubuntu-latest' && matrix.target != ''
96+
run: |
97+
# In the past, new releases of 'cross' have broken CI. So for now, we
98+
# pin it. We also use their pre-compiled binary releases because cross
99+
# has over 100 dependencies and takes a bit to compile.
100+
dir="$RUNNER_TEMP/cross-download"
101+
mkdir "$dir"
102+
echo "$dir" >> $GITHUB_PATH
103+
cd "$dir"
104+
curl -LO "https://github.com/cross-rs/cross/releases/download/$CROSS_VERSION/cross-x86_64-unknown-linux-musl.tar.gz"
105+
tar xf cross-x86_64-unknown-linux-musl.tar.gz
106+
107+
# We used to install 'cross' from master, but it kept failing. So now
108+
# we build from a known-good version until 'cross' becomes more stable
109+
# or we find an alternative. Notably, between v0.2.1 and current
110+
# master (2022-06-14), the number of Cross's dependencies has doubled.
111+
echo "CARGO=cross" >> $GITHUB_ENV
112+
echo "TARGET=--target ${{ matrix.target }}" >> $GITHUB_ENV
113+
- name: Show command used for Cargo
114+
run: |
115+
echo "cargo command is: ${{ env.CARGO }}"
116+
echo "target flag is: ${{ env.TARGET }}"
117+
- name: Show CPU info for debugging
118+
if: matrix.os == 'ubuntu-latest'
119+
run: lscpu
120+
# See: https://github.com/rust-lang/regex/blob/a2887636930156023172e4b376a6febad4e49120/.github/workflows/ci.yml#L145-L163
121+
- name: Pin memchr to 2.6.2
122+
if: matrix.build == 'pinned'
123+
run: cargo update -p memchr --precise 2.6.2
124+
- run: ${{ env.CARGO }} build --verbose $TARGET
125+
- run: ${{ env.CARGO }} doc --verbose $TARGET
126+
- run: ${{ env.CARGO }} test --verbose $TARGET
127+
- run: ${{ env.CARGO }} test --lib --verbose --no-default-features --features std,perf-literal $TARGET
128+
- run: ${{ env.CARGO }} test --lib --verbose --no-default-features $TARGET
129+
- run: ${{ env.CARGO }} test --lib --verbose --no-default-features --features std $TARGET
130+
- run: ${{ env.CARGO }} test --lib --verbose --no-default-features --features perf-literal $TARGET
131+
- run: ${{ env.CARGO }} test --lib --verbose --no-default-features --features std,perf-literal,logging $TARGET
132+
- if: matrix.build == 'nightly'
133+
run: ${{ env.CARGO }} build --manifest-path aho-corasick-debug/Cargo.toml $TARGET
134+
135+
rustfmt:
136+
name: rustfmt
137+
runs-on: ubuntu-latest
138+
steps:
139+
- name: Checkout repository
140+
uses: actions/checkout@v3
141+
- name: Install Rust
142+
uses: dtolnay/rust-toolchain@master
143+
with:
144+
toolchain: stable
145+
components: rustfmt
146+
- name: Check formatting
147+
run: |
148+
cargo fmt --all -- --check
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"rust-analyzer.linkedProjects": [
3+
"aho-corasick-debug/Cargo.toml",
4+
"benchmarks/engines/rust-aho-corasick/Cargo.toml",
5+
"benchmarks/engines/rust-daachorse/Cargo.toml",
6+
"benchmarks/engines/rust-jetscii/Cargo.toml",
7+
"benchmarks/engines/naive/Cargo.toml",
8+
"benchmarks/shared/Cargo.toml",
9+
"fuzz/Cargo.toml",
10+
"Cargo.toml"
11+
]
12+
}

vendor/aho-corasick/COPYING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This project is dual-licensed under the Unlicense and MIT licenses.
2+
3+
You may use this code under the terms of either license.

vendor/aho-corasick/Cargo.lock

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/aho-corasick/Cargo.toml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2+
#
3+
# When uploading crates to the registry Cargo will automatically
4+
# "normalize" Cargo.toml files for maximal compatibility
5+
# with all versions of Cargo and also rewrite `path` dependencies
6+
# to registry (e.g., crates.io) dependencies.
7+
#
8+
# If you are reading this file be aware that the original Cargo.toml
9+
# will likely look very different (and much more reasonable).
10+
# See Cargo.toml.orig for the original contents.
11+
12+
[package]
13+
edition = "2021"
14+
rust-version = "1.60.0"
15+
name = "aho-corasick"
16+
version = "1.1.4"
17+
authors = ["Andrew Gallant <[email protected]>"]
18+
build = false
19+
exclude = [
20+
"/aho-corasick-debug",
21+
"/benchmarks",
22+
"/tmp",
23+
]
24+
autolib = false
25+
autobins = false
26+
autoexamples = false
27+
autotests = false
28+
autobenches = false
29+
description = "Fast multiple substring searching."
30+
homepage = "https://github.com/BurntSushi/aho-corasick"
31+
readme = "README.md"
32+
keywords = [
33+
"string",
34+
"search",
35+
"text",
36+
"pattern",
37+
"multi",
38+
]
39+
categories = ["text-processing"]
40+
license = "Unlicense OR MIT"
41+
repository = "https://github.com/BurntSushi/aho-corasick"
42+
43+
[package.metadata.docs.rs]
44+
all-features = true
45+
rustdoc-args = [
46+
"--cfg",
47+
"docsrs",
48+
"--generate-link-to-definition",
49+
]
50+
51+
[features]
52+
default = [
53+
"std",
54+
"perf-literal",
55+
]
56+
logging = ["dep:log"]
57+
perf-literal = ["dep:memchr"]
58+
std = ["memchr?/std"]
59+
60+
[lib]
61+
name = "aho_corasick"
62+
path = "src/lib.rs"
63+
64+
[dependencies.log]
65+
version = "0.4.17"
66+
optional = true
67+
68+
[dependencies.memchr]
69+
version = "2.4.0"
70+
optional = true
71+
default-features = false
72+
73+
[dev-dependencies.doc-comment]
74+
version = "0.3.3"
75+
76+
[profile.bench]
77+
debug = 2
78+
79+
[profile.release]
80+
debug = 2

0 commit comments

Comments
 (0)