Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update clap requirement from 3.1.6 to 4.0.8 #141

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
minimum-version-check:
strategy:
matrix:
rust_toolchain: [1.57.0]
rust_toolchain: [1.60.0]
os: [ubuntu-latest, macOS-latest, windows-latest]
name: minimum version check using Rust ${{ matrix.rust_toolchain }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ base16 = { version = "0.2.1", default-features = false }
# base64 = { version = "0.21.0", default-features = false }
data-encoding = { version = "2.3.3", default-features = false }
chrono = { version = "0.4.19", optional = true }
clap = { version = "3.1.6", optional = true, features = ["derive"] }
clap = { version = "4.0.8", optional = true, features = ["derive"] }
codespan-reporting = "0.11.1"
hexf-parse = "0.2.1"
itertools = "0.10.1"
Expand Down
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM ekidd/rust-musl-builder:1.57.0 AS builder
FROM rust:1.64.0-alpine AS builder
RUN apk update
RUN apk add --no-cache openssl-dev musl-dev
WORKDIR /usr/src/cddl
COPY . ./
RUN cargo b --release --bin cddl

FROM scratch
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/cddl /cddl
ENTRYPOINT [ "/cddl" ]
FROM alpine:latest
COPY --from=builder /usr/src/cddl/target/release/cddl /usr/local/bin/cddl
ENTRYPOINT [ "/usr/local/bin/cddl" ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A Rust implementation of the Concise data definition language (CDDL). CDDL is an

This crate includes a handwritten parser and lexer for CDDL, and its development has been heavily inspired by the techniques outlined in Thorsten Ball's book ["Writing An Interpretor In Go"](https://interpreterbook.com/). The AST has been built to closely match the rules defined by the ABNF grammar in [Appendix B.](https://tools.ietf.org/html/rfc8610#appendix-B) of the spec. All CDDL must use UTF-8 for its encoding per the spec.

This crate supports validation of both CBOR and JSON data structures. The minimum supported Rust version (MSRV) is 1.57.0.
This crate supports validation of both CBOR and JSON data structures. The minimum supported Rust version (MSRV) is 1.60.0.

Also bundled into this repository is a basic language server implementation and extension for Visual Studio Code for editing CDDL. The implementation is backed by the compiled WebAssembly target included in this crate.

Expand Down
4 changes: 1 addition & 3 deletions src/bin/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,13 @@ struct Validate {
short = 'j',
long = "json",
help = "JSON document(s) to validate",
use_value_delimiter = true,
multiple_values = true
use_value_delimiter = true
)]
json: Option<Vec<String>>,
#[clap(
short = 'c',
long = "cbor",
help = "CBOR binary file(s) to validate",
multiple_values = true,
use_value_delimiter = true
)]
cbor: Option<Vec<String>>,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//!
//! This crate supports validation of both CBOR and JSON data structures. An
//! extremely basic REPL is included as well. This crate's minimum supported
//! Rust version (MSRV) is 1.57.0.
//! Rust version (MSRV) is 1.60.0.
//!
//! Also bundled into this repository is a basic language server implementation
//! and extension for Visual Studio Code for editing CDDL. The implementation is
Expand Down