| Crates.io | xrusty |
| lib.rs | xrusty |
| version | 0.2.1 |
| created_at | 2025-09-02 02:57:18.430151+00 |
| updated_at | 2025-12-24 03:20:38.47578+00 |
| description | Parse documents and transform using χrust |
| homepage | |
| repository | https://gitlab.gnome.org/balls/xrusty.git |
| max_upload_size | |
| id | 1820474 |
| size | 90,382 |
A command line interface for the χrust crate.
χrusty allows you to transform a document - XML, JSON, or Markdown - using an XSL stylesheet (XSLT) to produce a result document.
git clone https://gitlab.gnome.org/World/Rust/markup-rs/xrusty.git
cd xrusty
cargo install --path .
This will install xrusty into $HOME/.cargo/bin. To install into a different location use the --root option, see cargo help install.
χrusty takes one or more documents and performs a series of operations on them. The result of processing is then sent to the standard output. The documents may be XML or Markdown.
The operations performed are specified with command line arguments. Two operations don't need to be explicitly specified: parsing the document and serialising the result.
The --help option displays the command usage:
xrusty --help
Usage: xrusty [OPTIONS] [DOCS]...
Arguments:
[DOCS]... Documents
Options:
-t, --transform <TRANSFORM> Transform source documents using a XSLT stylesheet
-h, --help Print help
-V, --version Print version
For example:
xrusty --transform xsl/style.xsl xml/source.xml
This command will read the XML document xml/source.xml and transform it using the XSL stylesheet xsl/style.xsl. The result of the transformation will be output to stdout.
| Release | Notes |
|---|---|
| 0.2.1 | Synchronise with χrust 2.0.1 |
| 0.2.0 | Synchronise with χrust 1.3.0 |
| 0.1.0 | Initial release |