Skip to content

Commit

Permalink
Use custom citation rendering instead of citeproc-rs (#629)
Browse files Browse the repository at this point in the history
* Prepare BibTeX parser for citeproc removal

* Remove dependency to citeproc-rs

* Remove "In:" from rendered citations

* Remove page prefix from citation output

* Use italics instead of quotes in citations

* Add support for eprints in rendered citations

* Improve style of rendered citations

* Pin dashmap version to ensure MSRV
  • Loading branch information
pfoerster committed May 25, 2022
1 parent e06eda7 commit bfcfff5
Show file tree
Hide file tree
Showing 66 changed files with 2,986 additions and 4,688 deletions.
1,065 changes: 195 additions & 870 deletions Cargo.lock

Large diffs are not rendered by default.

53 changes: 13 additions & 40 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,27 @@ categories = ["development-tools"]
doctest = false

[features]
default = ["citation", "completion"]
default = ["completion"]
completion = ["fuzzy-matcher"]
citation = [
"bibutils-sys",
"citeproc",
"citeproc-db",
"citeproc-io",
"csl",
"fnv",
"html2md",
]

[dependencies]
anyhow = "1.0.57"
bibutils-sys = { version = "0.1.1", optional = true }
byteorder = "1.4.3"
chrono = { version = "0.4.19", default-features = false, features = ["std"] }
clap = { version = "3.1.17", features = [
"std",
"derive",
], default-features = false }
crossbeam-channel = "0.5.4"
dashmap = "5.2.0"
dashmap = "~5.2.0"
derive_more = "0.99.17"
encoding_rs = "0.8.31"
encoding_rs_io = "0.1.7"
flate2 = "1.0.23"
fern = "0.6"
fnv = { version = "1.0", optional = true }
flate2 = "1.0.23"
fuzzy-matcher = { version = "0.3.7", optional = true }
html2md = { version = "0.2.13", optional = true }
human_name = { version = "1.0.3", default-features = false }
isocountry = "0.3.2"
itertools = "0.10.1"
log = "0.4.17"
logos = "0.12.0"
Expand All @@ -60,36 +55,14 @@ serde = "1.0.137"
serde_json = "1.0.81"
serde_repr = "0.1.8"
smol_str = { version = "0.1.23", features = ["serde"] }
strum = { version = "0.24.0", features = ["derive"] }
tempfile = "3.3.0"
threadpool = "1.8.1"
titlecase = "1.1.0"
unicode-normalization = "0.1.19"
url = { version = "2.2.2", features = ["serde"] }
uuid = { version = "1.0.0", features = ["v4"] }

[dependencies.clap]
version = "3.1.17"
features = ["std", "derive"]
default-features = false

[dependencies.citeproc]
git = "https://github.com/zotero/citeproc-rs"
rev = "2ab195a1e6f84f0ff284813ece61dc62096abbfe"
optional = true

[dependencies.citeproc-db]
git = "https://github.com/zotero/citeproc-rs"
rev = "2ab195a1e6f84f0ff284813ece61dc62096abbfe"
optional = true

[dependencies.citeproc-io]
git = "https://github.com/zotero/citeproc-rs"
rev = "2ab195a1e6f84f0ff284813ece61dc62096abbfe"
optional = true

[dependencies.csl]
git = "https://github.com/zotero/citeproc-rs"
rev = "2ab195a1e6f84f0ff284813ece61dc62096abbfe"
optional = true

[dev-dependencies]
criterion = { version = "0.3.5" }
indoc = "1.0.6"
Expand Down
Loading

0 comments on commit bfcfff5

Please sign in to comment.