Docs.rs
dsc-rs-0.10.15
dsc-rs 0.10.15
Permalink
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
pacharanero
Dependencies
anyhow ^1.0
normal
base64 ^0.22
normal
chrono ^0.4
normal
clap ^4.5
normal
clap_complete ^4.5
normal
clap_mangen ^0.3
normal
csv ^1.4
normal
indicatif ^0.18
normal
reqwest ^0.13
normal
serde ^1.0
normal
serde_json ^1.0
normal
serde_yaml ^0.9
normal
slug ^0.1
normal
toml ^1.0
normal
tempfile ^3.26
dev
uuid ^1.21
dev
Versions
55.57%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module utils
dsc
0.10.15
Module utils
Module Items
Functions
In crate dsc
dsc
Module
utils
Copy item path
Source
Functions
ยง
color_
discourse_
label
ensure_
dir
Ensure a directory exists.
normalize_
baseurl
Trim trailing slashes from a base URL.
parse_
relative_
duration
Parse a relative duration like
7d
,
24h
,
1w
,
1m
,
90s
,
1y
.
parse_
since_
cutoff
Parse a
--since
-style value. Accepts either a relative duration (
7d
,
24h
,
30m
,
1w
,
90s
) or an ISO-8601 absolute timestamp (
2026-04-01
,
2026-04-01T12:00:00Z
). Returns the resulting cutoff instant (now - duration, or the ISO value itself).
read_
markdown
Read a Markdown file.
resolve_
topic_
path
Resolve a topic path from a user-provided path and a topic title.
slugify
Create a URL-safe slug from arbitrary input.
write_
markdown
Write a Markdown file, creating parent directories if needed.