Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Stargateur committed Mar 26, 2024
1 parent 8617216 commit 445a08f
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 10 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Continuous integration

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --all-features

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D -warnings
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "binator_nom"
authors = ["Stargateur"]
version = "0.0.0"
version = "0.0.1"
description = "binator nom adaptater"
license = "Zlib"
repository = "https://github.com/binator/nom"
Expand All @@ -20,10 +20,10 @@ include = [

[dependencies]
nom = '7'
binator_core = "0.0.2"
binator = "0.3.0"

[dev-dependencies]
binator_context = { git = "https://github.com/binator/context.git" }
binator = "0.3.0"
pretty_assertions = "1"
derive-new = "0.5"
derive_more = "0.99"
17 changes: 10 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use core::{
marker::PhantomData,
};

use binator_core::{
use binator::{
Contexting,
Parse,
Parsed,
Expand Down Expand Up @@ -109,11 +109,11 @@ where

#[cfg(test)]
mod tests {
use binator_context::{
First,
Keep,
};
use binator_core::{
use binator::{
context::{
First,
Keep,
},
Contexting,
Parse,
Parsed,
Expand All @@ -136,7 +136,10 @@ mod tests {
IResult,
};

use crate::{Nom, NomAtom};
use crate::{
Nom,
NomAtom,
};

#[derive(Display, Debug, PartialEq, From)]
enum FromAtom {
Expand Down

0 comments on commit 445a08f

Please sign in to comment.