├── .gitignore ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE.md ├── README.md ├── benchmarks ├── cpp │ ├── .clang-format │ ├── Makefile.toml │ └── src │ │ └── main.cc ├── fixtures │ ├── nodejs_http_parser.txt │ ├── seanmonstar_httparse.txt │ └── undici.txt ├── rust │ ├── Cargo.lock │ ├── Cargo.toml │ ├── Makefile.toml │ └── src │ │ └── main.rs └── wasm │ ├── .eslintrc.json │ ├── Makefile.toml │ ├── package.json │ ├── prettier.config.cjs │ └── src │ └── index.mjs ├── docs ├── cpp.md ├── js.md ├── nearform.jpg └── rust.md ├── macros ├── Cargo.lock ├── Cargo.toml ├── README.md └── src │ ├── actions.rs │ ├── definitions.rs │ ├── generators.rs │ ├── lib.rs │ ├── matchers.rs │ ├── native.rs │ ├── parsing.rs │ └── wasm.rs ├── parser ├── Cargo.lock ├── Cargo.toml ├── Makefile.toml ├── README.md ├── cbindgen.toml ├── constants │ ├── callbacks.yml │ ├── errors.yml │ └── methods.yml ├── prettier.config.cjs ├── src │ ├── lib.rs │ ├── native.rs │ ├── parse.rs │ ├── states.rs │ ├── wasm.rs │ └── wasm │ │ ├── package.json │ │ └── template.js └── tools │ ├── eslint.config.js │ ├── llhttp_tests_migration │ ├── main.mjs │ └── package.json │ ├── package.json │ ├── postbuild-cpp.mjs │ ├── postbuild-wasm.mjs │ ├── prettier.config.js │ └── publish.mjs ├── prettier.config.cjs ├── references ├── cpp │ ├── .clang-format │ ├── Makefile.toml │ ├── README.md │ └── src │ │ ├── output.cc │ │ ├── output.h │ │ ├── readme.cc │ │ ├── reference.cc │ │ ├── utils.cc │ │ └── utils.h ├── fixtures │ ├── debug.jsonl │ └── release.jsonl ├── prettier.config.cjs ├── reference.test.mjs ├── rust │ ├── Cargo.lock │ ├── Cargo.toml │ ├── Makefile.toml │ ├── README.md │ └── src │ │ ├── readme.rs │ │ └── reference.rs └── wasm │ ├── .eslintrc.json │ ├── Makefile.toml │ ├── README.md │ ├── package.json │ ├── prettier.config.js │ ├── src │ ├── callback.test.mjs │ ├── readme.mjs │ ├── reference.mjs │ └── simple.mjs │ └── templates │ ├── readme.sh │ └── reference.sh ├── rust-toolchain.toml ├── rustfmt.toml └── test-utils ├── Cargo.lock ├── Cargo.toml ├── Makefile.toml ├── src ├── callbacks.rs ├── context.rs ├── lib.rs └── output.rs └── tests ├── basic.rs ├── benchmark.rs ├── llhttp.rs ├── undici.rs └── upgrade.rs /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/README.md -------------------------------------------------------------------------------- /benchmarks/cpp/.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/cpp/.clang-format -------------------------------------------------------------------------------- /benchmarks/cpp/Makefile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/cpp/Makefile.toml -------------------------------------------------------------------------------- /benchmarks/cpp/src/main.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/cpp/src/main.cc -------------------------------------------------------------------------------- /benchmarks/fixtures/nodejs_http_parser.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/fixtures/nodejs_http_parser.txt -------------------------------------------------------------------------------- /benchmarks/fixtures/seanmonstar_httparse.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/fixtures/seanmonstar_httparse.txt -------------------------------------------------------------------------------- /benchmarks/fixtures/undici.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/fixtures/undici.txt -------------------------------------------------------------------------------- /benchmarks/rust/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/rust/Cargo.lock -------------------------------------------------------------------------------- /benchmarks/rust/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/rust/Cargo.toml -------------------------------------------------------------------------------- /benchmarks/rust/Makefile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/rust/Makefile.toml -------------------------------------------------------------------------------- /benchmarks/rust/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/rust/src/main.rs -------------------------------------------------------------------------------- /benchmarks/wasm/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["@cowtech/eslint-config"] 3 | } 4 | -------------------------------------------------------------------------------- /benchmarks/wasm/Makefile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/wasm/Makefile.toml -------------------------------------------------------------------------------- /benchmarks/wasm/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/wasm/package.json -------------------------------------------------------------------------------- /benchmarks/wasm/prettier.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/wasm/prettier.config.cjs -------------------------------------------------------------------------------- /benchmarks/wasm/src/index.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/benchmarks/wasm/src/index.mjs -------------------------------------------------------------------------------- /docs/cpp.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/docs/cpp.md -------------------------------------------------------------------------------- /docs/js.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/docs/js.md -------------------------------------------------------------------------------- /docs/nearform.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/docs/nearform.jpg -------------------------------------------------------------------------------- /docs/rust.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/docs/rust.md -------------------------------------------------------------------------------- /macros/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/Cargo.lock -------------------------------------------------------------------------------- /macros/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/Cargo.toml -------------------------------------------------------------------------------- /macros/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/README.md -------------------------------------------------------------------------------- /macros/src/actions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/src/actions.rs -------------------------------------------------------------------------------- /macros/src/definitions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/src/definitions.rs -------------------------------------------------------------------------------- /macros/src/generators.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/src/generators.rs -------------------------------------------------------------------------------- /macros/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/src/lib.rs -------------------------------------------------------------------------------- /macros/src/matchers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/src/matchers.rs -------------------------------------------------------------------------------- /macros/src/native.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/src/native.rs -------------------------------------------------------------------------------- /macros/src/parsing.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/src/parsing.rs -------------------------------------------------------------------------------- /macros/src/wasm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/macros/src/wasm.rs -------------------------------------------------------------------------------- /parser/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/Cargo.lock -------------------------------------------------------------------------------- /parser/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/Cargo.toml -------------------------------------------------------------------------------- /parser/Makefile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/Makefile.toml -------------------------------------------------------------------------------- /parser/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/README.md -------------------------------------------------------------------------------- /parser/cbindgen.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/cbindgen.toml -------------------------------------------------------------------------------- /parser/constants/callbacks.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/constants/callbacks.yml -------------------------------------------------------------------------------- /parser/constants/errors.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/constants/errors.yml -------------------------------------------------------------------------------- /parser/constants/methods.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/constants/methods.yml -------------------------------------------------------------------------------- /parser/prettier.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/prettier.config.cjs -------------------------------------------------------------------------------- /parser/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/src/lib.rs -------------------------------------------------------------------------------- /parser/src/native.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/src/native.rs -------------------------------------------------------------------------------- /parser/src/parse.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/src/parse.rs -------------------------------------------------------------------------------- /parser/src/states.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/src/states.rs -------------------------------------------------------------------------------- /parser/src/wasm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/src/wasm.rs -------------------------------------------------------------------------------- /parser/src/wasm/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/src/wasm/package.json -------------------------------------------------------------------------------- /parser/src/wasm/template.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/src/wasm/template.js -------------------------------------------------------------------------------- /parser/tools/eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/tools/eslint.config.js -------------------------------------------------------------------------------- /parser/tools/llhttp_tests_migration/main.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/tools/llhttp_tests_migration/main.mjs -------------------------------------------------------------------------------- /parser/tools/llhttp_tests_migration/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/tools/llhttp_tests_migration/package.json -------------------------------------------------------------------------------- /parser/tools/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/tools/package.json -------------------------------------------------------------------------------- /parser/tools/postbuild-cpp.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/tools/postbuild-cpp.mjs -------------------------------------------------------------------------------- /parser/tools/postbuild-wasm.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/tools/postbuild-wasm.mjs -------------------------------------------------------------------------------- /parser/tools/prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/tools/prettier.config.js -------------------------------------------------------------------------------- /parser/tools/publish.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/parser/tools/publish.mjs -------------------------------------------------------------------------------- /prettier.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/prettier.config.cjs -------------------------------------------------------------------------------- /references/cpp/.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/cpp/.clang-format -------------------------------------------------------------------------------- /references/cpp/Makefile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/cpp/Makefile.toml -------------------------------------------------------------------------------- /references/cpp/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/cpp/README.md -------------------------------------------------------------------------------- /references/cpp/src/output.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/cpp/src/output.cc -------------------------------------------------------------------------------- /references/cpp/src/output.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/cpp/src/output.h -------------------------------------------------------------------------------- /references/cpp/src/readme.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/cpp/src/readme.cc -------------------------------------------------------------------------------- /references/cpp/src/reference.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/cpp/src/reference.cc -------------------------------------------------------------------------------- /references/cpp/src/utils.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/cpp/src/utils.cc -------------------------------------------------------------------------------- /references/cpp/src/utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/cpp/src/utils.h -------------------------------------------------------------------------------- /references/fixtures/debug.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/fixtures/debug.jsonl -------------------------------------------------------------------------------- /references/fixtures/release.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/fixtures/release.jsonl -------------------------------------------------------------------------------- /references/prettier.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/prettier.config.cjs -------------------------------------------------------------------------------- /references/reference.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/reference.test.mjs -------------------------------------------------------------------------------- /references/rust/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/rust/Cargo.lock -------------------------------------------------------------------------------- /references/rust/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/rust/Cargo.toml -------------------------------------------------------------------------------- /references/rust/Makefile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/rust/Makefile.toml -------------------------------------------------------------------------------- /references/rust/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/rust/README.md -------------------------------------------------------------------------------- /references/rust/src/readme.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/rust/src/readme.rs -------------------------------------------------------------------------------- /references/rust/src/reference.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/rust/src/reference.rs -------------------------------------------------------------------------------- /references/wasm/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["@cowtech/eslint-config"] 3 | } 4 | -------------------------------------------------------------------------------- /references/wasm/Makefile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/wasm/Makefile.toml -------------------------------------------------------------------------------- /references/wasm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/wasm/README.md -------------------------------------------------------------------------------- /references/wasm/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/wasm/package.json -------------------------------------------------------------------------------- /references/wasm/prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/wasm/prettier.config.js -------------------------------------------------------------------------------- /references/wasm/src/callback.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/wasm/src/callback.test.mjs -------------------------------------------------------------------------------- /references/wasm/src/readme.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/wasm/src/readme.mjs -------------------------------------------------------------------------------- /references/wasm/src/reference.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/wasm/src/reference.mjs -------------------------------------------------------------------------------- /references/wasm/src/simple.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/wasm/src/simple.mjs -------------------------------------------------------------------------------- /references/wasm/templates/readme.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/wasm/templates/readme.sh -------------------------------------------------------------------------------- /references/wasm/templates/reference.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/references/wasm/templates/reference.sh -------------------------------------------------------------------------------- /rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | channel = "nightly" 3 | -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/rustfmt.toml -------------------------------------------------------------------------------- /test-utils/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/Cargo.lock -------------------------------------------------------------------------------- /test-utils/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/Cargo.toml -------------------------------------------------------------------------------- /test-utils/Makefile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/Makefile.toml -------------------------------------------------------------------------------- /test-utils/src/callbacks.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/src/callbacks.rs -------------------------------------------------------------------------------- /test-utils/src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/src/context.rs -------------------------------------------------------------------------------- /test-utils/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/src/lib.rs -------------------------------------------------------------------------------- /test-utils/src/output.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/src/output.rs -------------------------------------------------------------------------------- /test-utils/tests/basic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/tests/basic.rs -------------------------------------------------------------------------------- /test-utils/tests/benchmark.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/tests/benchmark.rs -------------------------------------------------------------------------------- /test-utils/tests/llhttp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/tests/llhttp.rs -------------------------------------------------------------------------------- /test-utils/tests/undici.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/tests/undici.rs -------------------------------------------------------------------------------- /test-utils/tests/upgrade.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShogunPanda/milo/HEAD/test-utils/tests/upgrade.rs --------------------------------------------------------------------------------