Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
nlopes committed Sep 28, 2024
0 parents commit 7b93d75
Show file tree
Hide file tree
Showing 16 changed files with 1,933 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Test

on:
push:
branches: [ main ]
pull_request:
branches: '*'

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.nightly }}

strategy:
fail-fast: false
matrix:
toolchain: [ 'stable', 'beta' ]
nightly: [false]
include:
- toolchain: 'nightly'
nightly: true

steps:
- uses: actions/checkout@v2

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
components: clippy, rustfmt

- name: Cache cargo registry
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: rust_${{ matrix.toolchain }}-cargo-${{ hashFiles('**/Cargo.*') }}

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --all-targets --verbose

- name: Run doc tests
uses: actions-rs/cargo@v1
with:
command: test
args: --doc --verbose

- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- --deny clippy::pedantic
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
259 changes: 259 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[workspace]
members = [
"acdc-parser",
"acdc-parser-pest"
]
resolver = "2"

[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["Norberto Lopes <[email protected]>"]
description = "A suite of tools for AsciiDoc documents"

[workspace.dependencies]
tracing = "0.1"
thiserror = "1.0"

[workspace.lints.rust]
unsafe_code = "forbid"
10 changes: 10 additions & 0 deletions acdc-parser-pest/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "acdc-parser-pest"
version = "0.1.0"
edition = "2021"

[dependencies]
acdc-parser = { path = "../acdc-parser" }
pest = "2.7"
pest_derive = "2.7"
tracing = { workspace = true }
Loading

0 comments on commit 7b93d75

Please sign in to comment.