Skip to content

Commit

Permalink
Merge pull request #7 from sebastienrousseau/feat/frontmatter-gen
Browse files Browse the repository at this point in the history
v0.0.4
  • Loading branch information
sebastienrousseau authored Nov 23, 2024
2 parents 82b0c19 + 51797cf commit d8b7e3b
Show file tree
Hide file tree
Showing 23 changed files with 3,926 additions and 1,368 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set version
run: echo "VERSION=$(grep version Cargo.toml | sed -n 2p | cut -d '"' -f 2)" >> $GITHUB_ENV
run: |
VERSION=$(grep '^version = ' Cargo.toml | sed 's/.*"\(.*\)".*/\1/')
echo "Found version: $VERSION" # Debug output
if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: Invalid version format found: $VERSION"
exit 1
fi
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
shell: /bin/bash -e {0}
- uses: actions/download-artifact@v4
with:
path: artifacts
Expand Down
21 changes: 12 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[package]
name = "frontmatter-gen"
version = "0.0.3"
version = "0.0.4"
edition = "2021"
rust-version = "1.56.0"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -63,7 +63,7 @@ path = "src/lib.rs"

# The main file that contains the entry point for the binary.
[[bin]]
name = "frontmatter_gen"
name = "fmg"
path = "src/main.rs"
required-features = ["cli"]

Expand All @@ -72,18 +72,18 @@ required-features = ["cli"]
# -----------------------------------------------------------------------------
[features]
# Optional features that can be enabled or disabled.
default = [] # SSG is not enabled by default
cli = ["dep:clap"] # CLI functionality only
ssg = [ # Full SSG functionality
"cli", # Include CLI as part of SSG
default = [] # SSG is not enabled by default
cli = ["dep:clap", "dep:tokio"] # CLI functionality only
ssg = [ # Full SSG functionality
"cli", # Include CLI as part of SSG
"dep:tera",
"dep:pulldown-cmark",
"dep:tokio",
"dep:dtt",
"dep:log",
# "dep:log",
"dep:url",
]
logging = ["dep:log"] # Optional logging feature
# logging = ["dep:log"] # Optional logging feature

# -----------------------------------------------------------------------------
# Dependencies
Expand All @@ -95,17 +95,20 @@ anyhow = "1.0.93"
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
serde_yml = "0.0.12"
time = { version = "0.3.36", features = ["formatting", "local-offset"] }

thiserror = "2.0.3"
toml = "0.8.19"
uuid = { version = "1.11.0", features = ["v4", "serde"] }

# Optional logging (only included when "logging" feature is enabled)
log = { version = "0.4.22", optional = true }
log = "0.4.22"

# Optional CLI and SSG dependencies - all must have optional = true
clap = { version = "4.5.21", features = ["derive"], optional = true }
dtt = { version = "0.0.8", optional = true }
pulldown-cmark = { version = "0.12.2", optional = true }
simple_logger = "5.0.0"
tempfile = "3.14.0"
tera = { version = "1.20.0", optional = true }
tokio = { version = "1.41.1", features = ["full"], optional = true }
Expand Down
Loading

0 comments on commit d8b7e3b

Please sign in to comment.