Skip to content

Commit

Permalink
hotfix: fix build for docs.rs (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
neoncitylights authored Nov 6, 2024
1 parent 2e1c9ca commit bef005e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Build documentation
run: cargo doc --workspace --no-deps --all-features
env:
RUSTDOCFLAGS: --enable-index-page -Zunstable-options
RUSTDOCFLAGS: --enable-index-page -Zunstable-options --cfg docsrs
- name: Setup Pages
uses: actions/configure-pages@v5
# https://github.com/actions/deploy-pages/issues/188#issuecomment-1597651901
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.0.1 (2024-11-06)
Released a hotfix to enable documentation to be generated on docs.rs.

## 1.0.0 (2024-11-06)
This version marks the first stable release of the library. The API has been significantly reworked since the initial release to be more idiomatic. The dependency for handling dates was switched from the `time` crate to the `jiff` crate, and the MSRV has been bumped to 1.70.0 to align with the `jiff` crate.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "arxiv"
version = "1.0.0"
version = "1.0.1"
authors = [
"Samantha Nguyen, <[email protected]>",
]
Expand All @@ -14,6 +14,10 @@ keywords = ["arxiv"]
categories = ["parsing", "text-processing"]
include = ["src", "LICENSE-APACHE", "LICENSE-MIT"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[features]
default = ["url"]
url = ["dep:url"]
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(missing_copy_implementations, missing_debug_implementations)]

//! A Rust library for parsing `arXiv` categories, identifiers and references.
Expand Down
2 changes: 0 additions & 2 deletions src/subject_tables.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// TODO: Auto-generate the tables below from "https://arxiv.org/category_taxonomy" in a build.rs file

pub(crate) const COMPSCI_TABLE: &[&str] = &[
"AI", "AR", "CC", "CE", "CG", "CL", "CR", "CV", "CY", "DB", "DC", "DL", "DM", "DS", "ET", "FL",
"GL", "GR", "GT", "HC", "IR", "IT", "LG", "LO", "MA", "MM", "MS", "NA", "NI", "OH", "OS", "PF",
Expand Down

0 comments on commit bef005e

Please sign in to comment.