chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

View File

@@ -0,0 +1,41 @@
---
name: Bug report
about: Create a report to help us improve.
title: "[BUG]"
labels: bug
assignees: Alexhuszagh
---
## Description
Please include a clear and concise description of the bug. If the bug includes a security vulnerability, you may also privately report the issue to the [maintainer](mailto:ahuszagh@gmail.com).
## Prerequisites
Here are a few things you should provide to help me understand the issue:
- Rust version: `rustc -V`
- minimal-lexical version:
## Test case
Please provide a short, complete (with crate import, etc) test case for
the issue, showing clearly the expected and obtained results.
Example test case:
```
#[macro_use]
extern crate minimal_Lexical;
fn main() {
let integer = b"1";
let fraction = b"2345";
let float: f64 = minimal_lexical::parse_float(integer.iter(), fraction.iter(), 0);
assert_eq!(value, 1.2345);
}
```
## Additional Context
Add any other context about the problem here.

View File

@@ -0,0 +1,21 @@
---
name: Custom issue template
about: Issue template for miscellaneous issues.
title: "[OTHER]"
labels: ''
assignees: Alexhuszagh
---
## Prerequisites
If applicable to the issue, here are a few things you should provide to help me understand the issue:
- Rust version: `rustc -V`
- minimal-lexical version:
## Description
Please include a clear and concise description of the issue.
## Additional Context
Add any other context or screenshots about the issue here.

View File

@@ -0,0 +1,16 @@
---
name: Documentation
about: Update the project's documentation.
title: "[DOC]"
labels: documentation
assignees: Alexhuszagh
---
## Description
Please include a clear and concise description of the issue.
Ex: Documentation for `parse_float` contains a typo.
## Additional Context
Add any other context or screenshots about the issue here.

View File

@@ -0,0 +1,27 @@
---
name: Feature request
about: Suggest an idea for this project.
title: "[FEATURE]"
labels: enhancement
assignees: Alexhuszagh
---
## Problem
A clear and concise description of what the problem is. Ex. minimal-lexical does not parse standard-conforming JSON numbers.
## Solution
A clear and concise description of what you want to happen.
## Prerequisites
If applicable to the feature request, here are a few things you should provide to help me understand the issue:
- Rust version: `rustc -V`
- minimal-lexical version:
## Alternatives
A clear and concise description of any alternative solutions or features you've considered.
## Additional Context
Add any other context or screenshots about the feature request here.

View File

@@ -0,0 +1,11 @@
---
name: Question
about: Have a question how to use minimal-lexical?
title: "[QUESTION]"
labels: question
assignees: Alexhuszagh
---
## Question
A clear and concise description of what the question is. Ex. how do I use minimal-lexical without a system allocator?

View File

@@ -0,0 +1,27 @@
---
name: Bug fix
about: Fix a bug in minimal-lexical.
title: "[BUG]"
labels: bug
assignees: Alexhuszagh
---
**NOTE:**
- If you have made non-trivial changes to the code, please make sure to run unittests prior to committing.
- If you have made any changes to parsing algorithms, please run at least `test-parse-golang` or `test-parse-unittests` with `feature =
comprehensive_float_test"` enabled prior to committing, to ensure there are no regressions.
- Please run `cargo fmt` on nightly prior to committing.
## Optional Debugging Information
If applicable to the issue, here are a few things you should provide to help me understand the issue:
- Rust version: `rustc -V`
- minimal-lexical version:
## Description
Please include a clear and concise description of the changes made.
## Additional Context
Add any other context or screenshots about the bug fix here.

View File

@@ -0,0 +1,22 @@
---
name: Custom pull request template
about: Pull request template for miscellaneous changes.
title: "[OTHER]"
labels: ''
assignees: Alexhuszagh
---
**NOTE:**
- If you have made non-trivial changes to the code, please make sure to run unittests prior to committing.
- Please run `cargo fmt` on nightly prior to committing.
## Optional Debugging Information
If applicable to the issue, here are a few things you should provide to help me understand the issue:
- Rust version: `rustc -V`
- minimal-lexical version:
## Description
Please include a clear and concise description of the changes.

View File

@@ -0,0 +1,21 @@
---
name: Documentation
about: Update the project's documentation.
title: "[DOC]"
labels: documentation
assignees: Alexhuszagh
---
**NOTE:**
- If you have made any changes to doc comments, please run `cargo fmt` on nightly prior to committing.
## Description
Please include a clear and concise description of fixes made to the documentation.
Ex: Fixed a backtick leading to improper formatting in README.
Ex: Fixed code sample for `parse_partial` in README.
Ex: Updated outdated doc comments in `parse_float`.
## Additional Context
Add any other context or screenshots about the issue here.

View File

@@ -0,0 +1,90 @@
name: Cross
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
cross:
name: Rust ${{matrix.target}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
# Android
- aarch64-linux-android
- arm-linux-androideabi
- armv7-linux-androideabi
- i686-linux-android
- x86_64-linux-android
# Linux
- aarch64-unknown-linux-gnu
- arm-unknown-linux-gnueabi
- armv7-unknown-linux-gnueabihf
- i686-unknown-linux-gnu
- i686-unknown-linux-musl
- mips-unknown-linux-gnu
- mips64-unknown-linux-gnuabi64
- mips64el-unknown-linux-gnuabi64
- mipsel-unknown-linux-gnu
- powerpc64le-unknown-linux-gnu
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
# Windows
- x86_64-pc-windows-gnu
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{matrix.target}}
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: check
args: --target ${{matrix.target}}
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --target ${{matrix.target}}
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --target ${{matrix.target}} --features=compact
notest:
name: Rust ${{matrix.target}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
# Linux
- powerpc64-unknown-linux-gnu
- s390x-unknown-linux-gnu
# FreeBSD
- i686-unknown-freebsd
- x86_64-unknown-freebsd
- x86_64-unknown-netbsd
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{matrix.target}}
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: check
args: --target ${{matrix.target}}

View File

@@ -0,0 +1,23 @@
name: Features
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
features:
name: Test Feature Combinations
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- run: ci/test.sh
- run: NIGHTLY=1 NO_STD=1 ci/test.sh

View File

@@ -0,0 +1,40 @@
name: OSX
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
cross:
name: Rust ${{matrix.target}}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
target:
# iOS targets don't work, since rust-embedded doesn't provide images.
- x86_64-apple-darwin
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{matrix.target}}
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: check
args: --target ${{matrix.target}}
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --target ${{matrix.target}}
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --target ${{matrix.target}} --features=compact

View File

@@ -0,0 +1,41 @@
name: Simple
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Rust ${{matrix.rust}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [1.36.0, 1.41.0, 1.46.0, 1.51.0, stable, beta, nightly]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
- run: cargo check
- run: cargo test
- run: cargo test --features=compact
check:
name: Lint code
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- run: ci/check.sh

View File

@@ -0,0 +1,24 @@
name: Valgrind
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
valgrind:
name: Valgrind Tests
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- run: sudo apt-get install valgrind
- run: cargo +nightly install cargo-valgrind
- run: cargo +nightly valgrind test --release
- run: cargo +nightly valgrind test --all-features --release