Skip to content

Commit

Permalink
Updated fst version to 0.4 and moved to edition 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton committed Mar 30, 2020
1 parent fa10f41 commit c56f51f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "levenshtein_automata"
version = "0.1.1"
version = "0.2.0"
authors = ["Paul Masurel <[email protected]>"]
edition = "2018"
license = "MIT"
categories = ["text-processing"]
description = """Creates Levenshtein Automata in an efficient manner."""
Expand All @@ -12,7 +13,7 @@ readme = "README.md"
keywords = ["levenshtein", "automaton", "automata", "fuzzy"]

[dependencies]
fst = {version="0.3", optional=true, default-features=false}
fst = {version="0.4", optional=true, default-features=false}

[dev-dependencies]
levenshtein = "1.0"
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ the levenshtein distance from a given string.
# Example

```rust
extern crate levenshtein_automata;

use levenshtein_automata::{LevenshteinAutomatonBuilder, Distance};

fn main() {
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ I also tried to explain it in the following [blog post](https://fulmicoton.com/p

#![cfg_attr(test, feature(test))]

#[cfg(feature = "fst_automaton")]
extern crate fst;

#[cfg(test)]
extern crate test;

#[cfg(test)]
mod bench;
#[cfg(test)]
Expand Down
4 changes: 1 addition & 3 deletions src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
extern crate levenshtein;

use std::collections::HashSet;
use {Distance, LevenshteinNFA, ParametricDFA};
use crate::{Distance, LevenshteinNFA, ParametricDFA};

fn make_distance(n: u8, max_distance: u8) -> Distance {
if n > max_distance {
Expand Down

0 comments on commit c56f51f

Please sign in to comment.