Skip to content
Draft
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4c304d1
Start restructuring
DerDrodt Jun 5, 2026
badab05
Fix archive & errors
DerDrodt Jun 6, 2026
de7faf7
Fix compilation errors
DerDrodt Jun 16, 2026
6392771
Update archive
DerDrodt Jun 16, 2026
80506aa
Remove unused dev dependencies
DerDrodt Jun 16, 2026
dc9fa91
Fix archiver path
DerDrodt Jun 16, 2026
aaa0799
Fix archive CI command
DerDrodt Jun 16, 2026
00d85d2
Clippy
DerDrodt Jun 16, 2026
6c343fd
Fix docs
DerDrodt Jun 16, 2026
c57e3f2
Fix tests
DerDrodt Jun 16, 2026
add2339
Rework citeproc tests
DerDrodt Jun 16, 2026
da6a64a
Citeproc tests
DerDrodt Jun 16, 2026
1f31310
Merge remote-tracking branch 'upstream/main' into workspace-structure
DerDrodt Jun 16, 2026
3f304a0
Merge remote-tracking branch 'upstream/main' into workspace-structure
DerDrodt Jun 16, 2026
01db8fd
Remove hayagriva-util
DerDrodt Jun 17, 2026
3868159
Fix import
DerDrodt Jun 17, 2026
5b6d1a6
Doc changes
DerDrodt Jun 24, 2026
43bbe04
Remove broken doc link
DerDrodt Jun 28, 2026
de7d16e
Merge remote-tracking branch 'upstream/main' into workspace-structure
DerDrodt Jul 11, 2026
2ded97e
Update locale
DerDrodt Jul 21, 2026
47263b8
Remove hayagriva-biblatex
DerDrodt Jul 21, 2026
1b9e313
Doc, make api somewhat smaller
DerDrodt Jul 21, 2026
b35eb06
Remove "extern crate"
DerDrodt Jul 21, 2026
40a0225
Follow import style
DerDrodt Jul 21, 2026
577c943
Merge remote-tracking branch 'upstream/main' into workspace-structure
DerDrodt Jul 21, 2026
dbbf065
Fix Cargo.toml files: no more `path`
DerDrodt Jul 31, 2026
acb335c
Move archive folder
DerDrodt Jul 31, 2026
300b491
Crate keywords and descriptions
DerDrodt Jul 31, 2026
6e4bb8b
Restructure tests
DerDrodt Jul 31, 2026
5edbaf9
Clippy
DerDrodt Jul 31, 2026
f45f5c5
Simplify workspace structure and tests
DerDrodt Jul 31, 2026
83fbc4e
Rename `hayagriva-json` to `hayagriva-csl-json`
DerDrodt Jul 31, 2026
e6af476
Mark core util as `doc(hidden)`
DerDrodt Jul 31, 2026
6403cd4
Move as many types from core to format as possible
DerDrodt Jul 31, 2026
439e28e
Fix CI and docs
DerDrodt Jul 31, 2026
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/archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
cd ..
git clone --depth 1 https://github.com/citation-style-language/styles
- name: Check if archives are up-to-date
run: cargo test --test archiver -- --ignored
run: cargo test -p hayagriva-archive --test archiver -- --ignored
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: dtolnay/rust-toolchain@3056ad9b1fc916cb9a55f7f72ae4a848b7d50249 # 1.91.0
- run: cargo build
- run: cargo test --features csl-json
- run: cargo test --all-features

checks:
name: Check clippy, formatting, and documentation
Expand Down
118 changes: 96 additions & 22 deletions Cargo.lock

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

60 changes: 23 additions & 37 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,50 +1,36 @@
[package]
name = "hayagriva"
[workspace]
members = [
"crates/hayagriva-archive",
"crates/hayagriva-biblatex",
"crates/hayagriva-cli",
"crates/hayagriva-core",
"crates/hayagriva-csl",
"crates/hayagriva-format",
"crates/hayagriva-json",
"crates/tests",
]
resolver = "2"

[workspace.package]
version = "0.10.1"
authors = ["Martin Haug <mhaug@live.de>"]
authors = [
"Martin Haug <mhaug@live.de>",
"Daniel Drodt <daniel.drodt@tu-darmstadt.de>",
]
edition = "2024"
license = "MIT OR Apache-2.0"
description = "Work with references: Literature database management, storage, and citation formatting"
repository = "https://github.com/typst/hayagriva"
readme = "README.md"
categories = ["template-engine", "value-formatting", "command-line-utilities"]
keywords = ["bibliography", "citation", "reference", "bibtex", "literature"]

[features]
default = ["biblatex", "archive"]
cli = ["clap", "strum"]
archive = ["ciborium"]
csl-json = ["citationberg/json"]
keywords = ["bibliography", "citation", "reference", "literature"]

[dependencies]
[workspace.dependencies]
biblatex = { version = "0.12.0", features = ["unic-langid"] }
ciborium = { version = "0.2.1" }
citationberg = "0.7.0"
indexmap = { version = "2.0.2", features = ["serde"] }
roman-numerals-rs = "3.1.0"
paste = "1.0.14"
serde = { version = "1", features = ["derive"] }
serde_yaml = "0.9.25"
thiserror = "2.0.16"
unic-langid = { version = "0.9.6", features = ["serde"] }
unicode-segmentation = "1.6.0"
thiserror = "2.0.16"
unscanny = "0.1.0"
url = { version = "2.4", features = ["serde"] }
biblatex = { version = "0.12.0", features = ["unic-langid"], optional = true }
ciborium = { version = "0.2.1", optional = true }
clap = { version = "4", optional = true, features = ["cargo", "derive"] }
strum = { version = "0.26", features = ["derive"], optional = true }
icu_collator = "2.2.0"
icu_locale = "2.2.0"

[dev-dependencies]
heck = "0.5"
serde_json = "1"
regex = "1"

[[bin]]
name = "hayagriva"
required-features = ["cli"]

[[test]]
name = "citeproc"
path = "tests/citeproc.rs"
required-features = ["csl-json"]
2 changes: 1 addition & 1 deletion archive/locales/sv-SE.cbor

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions crates/hayagriva-archive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "hayagriva-archive"
description = "Archived CSL styles and locales for Hayagriva/Typst"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme.workspace = true
keywords.workspace = true

[dependencies]
citationberg = { workspace = true }
serde = { workspace = true }
hayagriva-core = { path = "../hayagriva-core" }
ciborium = { workspace = true }

[dev-dependencies]
heck = "0.5"
Loading