Skip to content

Commit

Permalink
Update documentation of Rust feature (#1711)
Browse files Browse the repository at this point in the history
* Update documentation of Rust feature

* Synchronize README.md and src/lib.rs
  • Loading branch information
sondalex authored Jan 9, 2025
1 parent bdfc38b commit c04b97a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tokenizers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,5 @@ fn main() -> Result<()> {
**progressbar**: The progress bar visualization is enabled by default. It might be disabled if
compilation for certain targets is not supported by the [termios](https://crates.io/crates/termios)
dependency of the [indicatif](https://crates.io/crates/indicatif) progress bar.
**http**: This feature enables downloading the tokenizer via HTTP. It is disabled by default.
With this feature enabled, `Tokenizer::from_pretrained` becomes accessible.
2 changes: 2 additions & 0 deletions tokenizers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@
//! **progressbar**: The progress bar visualization is enabled by default. It might be disabled if
//! compilation for certain targets is not supported by the [termios](https://crates.io/crates/termios)
//! dependency of the [indicatif](https://crates.io/crates/indicatif) progress bar.
//! **http**: This feature enables downloading the tokenizer via HTTP. It is disabled by default.
//! With this feature enabled, `Tokenizer::from_pretrained` becomes accessible.
#[macro_use]
extern crate log;
Expand Down

0 comments on commit c04b97a

Please sign in to comment.