Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/codecov.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
interval: "monthly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "monthly"
87 changes: 0 additions & 87 deletions .github/workflows/build.yml

This file was deleted.

111 changes: 111 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: CI

on:
push:
branches:
- main
- "v0.*.x" # v0.1.x or v0.20.x
- "v[1-9]*.x" # v1.x or v20.x
pull_request:
branches:
- main
- "v0.*.x" # v0.1.x or v0.20.x
- "v[1-9]*.x" # v1.x or v20.x

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
RUSTFLAGS: -D warnings
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
TAPLO_CLI_VERSION: 0.10.0

jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Cache taplo-cli
id: cache-taplo
uses: actions/cache@v5
with:
path: ~/.cargo/bin/taplo
key: ${{ runner.os }}-taplo-${{ env.TAPLO_CLI_VERSION }}

- name: Install taplo-cli if not cached
if: steps.cache-taplo.outputs.cache-hit != 'true'
shell: bash
run: cargo install taplo-cli@${TAPLO_CLI_VERSION} --locked

- name: Run taplo fmt
run: taplo fmt --check

- name: Run cargo fmt
run: cargo fmt --all -- --check

check-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2

- name: Run cargo clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings

build-default-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2
- run: cargo build

build-no-default-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2
- run: cargo build --no-default-features

check-msrv:
runs-on: ubuntu-latest
env:
MSRV: 1.85.0
steps:
- uses: actions/checkout@v6

- name: Setup MSRV
run: rustup toolchain install ${MSRV} --no-self-update

- name: Check code
run: cargo +${MSRV} check --all-features

check-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2

- name: Generate docs
run: cargo doc --no-deps --lib --all-features

run-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v6

- name: Rust Cache
uses: swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.os }}

- name: Run tests
run: cargo test --workspace --all-features
env:
RUST_BACKTRACE: 1
32 changes: 20 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
[workspace]
members = [".", "cmd"]
resolver = "3"

[workspace.package]
edition = "2024"
rust-version = "1.85.0"
license = "Apache-2.0"
homepage = "https://github.com/koushiro/flvparse"
repository = "https://github.com/koushiro/flvparse"

[package]
name = "flvparse"
version = "0.1.0"
authors = ["koushiro <koushiro.cqx@gmail.com>"]
edition = "2018"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true

description = "A FLV format parsing library written in Rust"
readme = "README.md"
license = "MIT/Apache-2.0"
documentation = "https://docs.rs/flvparse"
repository = "https://github.com/koushiro/flvparse"
description = "A FLV format parsing library written in Rust"
keywords = ["flv", "parse", "nom"]
exclude = [
".github",
"assets",
"cmd",
"tests"
]
exclude = ["assets", "cmd", "tests"]

[lib]
name = "flvparse"
path = "src/lib.rs"

[features]
default = ["std"]
alloc = ["nom/alloc"]
std = ["nom/std"]

[dependencies]
nom = { version = "6.1", default-features = false }
nom = { version = "6.1", default-features = false, features = ["alloc"] }
File renamed without changes.
21 changes: 0 additions & 21 deletions LICENSE-MIT

This file was deleted.

Loading