chore: package derive lib

This commit is contained in:
2025-07-15 16:36:59 +03:00
parent 60488d364e
commit 545b1d385f
6 changed files with 31 additions and 13 deletions

View File

@@ -1,7 +1,17 @@
[package]
name = "filecaster-derive"
version = "0.1.0"
version = "0.2.0"
edition = "2024"
authors = ["Kristofers Solo <dev@kristofers.xyz>"]
description = "Procedural derive macro for `filecaster`: automatically implement `FromFile` for your structs."
license = "MIT OR Apache-2.0"
repository = "https://github.com/kristoferssolo/filecaster"
homepage = "https://github.com/kristoferssolo/filecaster"
documentation = "https://docs.rs/filecaster-derive"
readme = "../README.md"
keywords = ["proc-macro", "derive", "configuration", "file-parsing"]
categories = ["rust-patterns", "parsing", "config"]
exclude = ["/.github", "/.gitignore", "/tests", "*.png", "*.md"]
[lib]
proc-macro = true
@@ -21,3 +31,5 @@ merge = { workspace = true, optional = true }
[dev-dependencies]
claims.workspace = true
serde_json.workspace = true
filecaster.workspace = true

View File

@@ -7,7 +7,7 @@ use syn::{
const WITH_MERGE: bool = cfg!(feature = "merge");
/// Entry point: generate the shadow struct + [`FromFile`] impls.
/// Entry point: generate the shadow struct + `FromFile` impls.
pub fn impl_from_file(input: &DeriveInput) -> Result<TokenStream> {
let name = &input.ident;
let vis = &input.vis;