Skip to content

Commit

Permalink
Merge pull request #4 from upupnoah/main
Browse files Browse the repository at this point in the history
feat(darling): support darling to process input
  • Loading branch information
upupnoah authored Aug 14, 2024
2 parents c2f8f7f + 68b0946 commit 213b87b
Show file tree
Hide file tree
Showing 5 changed files with 366 additions and 1 deletion.
146 changes: 146 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ darling = "^0.20.10"
proc-macro2 = "^1.0.86"
quote = "^1.0.36"
syn = { version = "^2.0.72", features = ["extra-traits"] }
tracing = "^0.1.40"
tracing-subscriber = "^0.3.18"

[dev-dependencies]
anyhow = "^1.0"
Expand Down
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Run rust examples
.PHONY: enum_marco enum_macro_darling

# clap:
# cargo run --example clap -- $(ARGS) # USAGE: make clap ARGS="--help"

# subcommand:
# cargo run --example subcommand -- $(ARGS)

# mode:
# cargo run --example mode -- $(ARGS)

# validated_values:
# cargo run --example validated_values -- $(ARGS)

# text-cli:
# cargo run --example text_cli -- $(ARGS)
# async:
# cargo run --example async
# async2:
# cargo run --example async2
# axum:
# cargo run --example axum
# thread:
# cargo run --example thread

# run:
# @cargo run -- $(ARGS)

# run_with_log:
# @RUST_LOG=info cargo run -- $(ARGS)

enum_macro:
@RUST_LOG=info cargo run --example enum_macro

enum_macro_darling:
@RUST_LOG=info cargo run --example enum_macro_darling
Loading

0 comments on commit 213b87b

Please sign in to comment.