Skip to content

sayrer/twitter-text

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-text in Rust

This repo is a Rust implementation of twitter-text. All aspects of tweet text are parsed by a Pest PEG grammar, with the exception of URL length and character weighting. See the parser directory for the grammar. Procedural validation for URL lengths and character weights is performed by the Extractor code.

To run the tests, install Rust, and then try this in the terminal:

> cargo build
> cargo test

Ruby Bindings

The Ruby bindings require Ruby 3.4.1 or higher. If you're on macOS with the system Ruby (2.6.x), you'll need to install a newer version:

Option 1: Homebrew (simplest)

brew install ruby

Option 2: Ruby version manager

The Ruby bindings use the magnus crate which requires Ruby 3.2.3+ APIs.

About

Twitter Text Libraries: Rust implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 30.1%
  • HTML 17.5%
  • Rust 17.2%
  • Java 11.7%
  • Ruby 7.5%
  • Objective-C 6.1%
  • Other 9.9%