From 5a474efb9d18fa4a78ac8a693c239d19ac02f9ea Mon Sep 17 00:00:00 2001 From: Mikhail Kviatkovskii Date: Sat, 6 Jul 2024 18:40:50 +0400 Subject: [PATCH] #6: code reorganization, added binaries for index and search --- Cargo.toml | 9 +++++++-- src/bin.rs | 1 - src/bin/ringo_index.rs | 8 ++++++++ src/bin/ringo_search.rs | 11 +++++++++++ src/db.rs | 4 ++++ src/{ringo/fingerprint => db}/fingerprint.rs | 2 +- src/{ringo/ringo/index => db}/index.rs | 14 ++++++++------ src/{ringo/ringo/index => db}/index_item.rs | 6 +++--- src/{ringo/ringo/search => db}/search.rs | 17 ++++++++++------- src/lib.rs | 5 +++-- src/{ringo => }/math.rs | 0 src/{ringo => }/math/similarity.rs | 0 src/{ringo => }/math/similarity/tanimoto.rs | 2 +- src/molecule.rs | 2 ++ src/{ringo => }/molecule/model.rs | 0 src/{ringo => }/molecule/model/atom.rs | 2 +- src/{ringo => }/molecule/model/bond.rs | 0 src/{ringo => }/molecule/model/element.rs | 0 src/{ringo => }/molecule/model/molecule.rs | 10 +++++----- src/molecule/smiles.rs | 1 + src/{ringo => }/molecule/smiles/reader.rs | 2 +- src/{ringo => }/molecule/smiles/reader/atom.rs | 16 ++++++++-------- src/{ringo => }/molecule/smiles/reader/bond.rs | 4 ++-- .../molecule/smiles/reader/charge.rs | 2 +- .../molecule/smiles/reader/element.rs | 2 +- .../molecule/smiles/reader/hydrogens.rs | 2 +- .../molecule/smiles/reader/isotope.rs | 2 +- .../molecule/smiles/reader/molecule.rs | 10 +++++----- src/ringo.rs | 4 ---- src/ringo/fingerprint.rs | 1 - src/ringo/molecule.rs | 2 -- src/ringo/molecule/smiles.rs | 1 - src/ringo/ringo.rs | 2 -- src/ringo/ringo/index.rs | 3 --- src/ringo/ringo/index/main.rs | 3 --- src/ringo/ringo/search.rs | 2 -- src/ringo/ringo/search/main.rs | 3 --- 37 files changed, 85 insertions(+), 70 deletions(-) delete mode 100644 src/bin.rs create mode 100644 src/bin/ringo_index.rs create mode 100644 src/bin/ringo_search.rs create mode 100644 src/db.rs rename src/{ringo/fingerprint => db}/fingerprint.rs (95%) rename src/{ringo/ringo/index => db}/index.rs (77%) rename src/{ringo/ringo/index => db}/index_item.rs (83%) rename src/{ringo/ringo/search => db}/search.rs (87%) rename src/{ringo => }/math.rs (100%) rename src/{ringo => }/math/similarity.rs (100%) rename src/{ringo => }/math/similarity/tanimoto.rs (93%) create mode 100644 src/molecule.rs rename src/{ringo => }/molecule/model.rs (100%) rename src/{ringo => }/molecule/model/atom.rs (91%) rename src/{ringo => }/molecule/model/bond.rs (100%) rename src/{ringo => }/molecule/model/element.rs (100%) rename src/{ringo => }/molecule/model/molecule.rs (93%) create mode 100644 src/molecule/smiles.rs rename src/{ringo => }/molecule/smiles/reader.rs (74%) rename src/{ringo => }/molecule/smiles/reader/atom.rs (83%) rename src/{ringo => }/molecule/smiles/reader/bond.rs (90%) rename src/{ringo => }/molecule/smiles/reader/charge.rs (97%) rename src/{ringo => }/molecule/smiles/reader/element.rs (95%) rename src/{ringo => }/molecule/smiles/reader/hydrogens.rs (96%) rename src/{ringo => }/molecule/smiles/reader/isotope.rs (91%) rename src/{ringo => }/molecule/smiles/reader/molecule.rs (97%) delete mode 100644 src/ringo.rs delete mode 100644 src/ringo/fingerprint.rs delete mode 100644 src/ringo/molecule.rs delete mode 100644 src/ringo/molecule/smiles.rs delete mode 100644 src/ringo/ringo.rs delete mode 100644 src/ringo/ringo/index.rs delete mode 100644 src/ringo/ringo/index/main.rs delete mode 100644 src/ringo/ringo/search.rs delete mode 100644 src/ringo/ringo/search/main.rs diff --git a/Cargo.toml b/Cargo.toml index 3f05f63..cf39227 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,14 +12,19 @@ version = "0.0.1" [dependencies] bincode = "2.0.0-rc.3" +clickrs = "0.1.5" fixedbitset = "0.5.7" nom = "7.1.3" petgraph = "0.6.5" +[lib] +name = "ringo" +path = "src/lib.rs" + [[bin]] name = "ringo-index" -path = "src/ringo/ringo/index/main.rs" +path = "src/bin/ringo_index.rs" [[bin]] name = "ringo-search" -path = "src/ringo/ringo/search/main.rs" +path = "src/bin/ringo_search.rs" diff --git a/src/bin.rs b/src/bin.rs deleted file mode 100644 index 8b13789..0000000 --- a/src/bin.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/bin/ringo_index.rs b/src/bin/ringo_index.rs new file mode 100644 index 0000000..d4c01fa --- /dev/null +++ b/src/bin/ringo_index.rs @@ -0,0 +1,8 @@ +extern crate ringo; + +use ringo::db::index::index_file; + +fn main() { + let args: Vec = std::env::args().collect(); + index_file(&args[1]); +} diff --git a/src/bin/ringo_search.rs b/src/bin/ringo_search.rs new file mode 100644 index 0000000..e13310a --- /dev/null +++ b/src/bin/ringo_search.rs @@ -0,0 +1,11 @@ +extern crate ringo; + +use ringo::db::search::similarity_search; + +fn main() { + let args: Vec = std::env::args().collect(); + let results = similarity_search(&args[1], &args[2], args[3].parse().unwrap(), args[4].parse().unwrap()); + for result in results { + println!("{:?} {:?}", result.line, result.similarity); + } +} diff --git a/src/db.rs b/src/db.rs new file mode 100644 index 0000000..d7ce069 --- /dev/null +++ b/src/db.rs @@ -0,0 +1,4 @@ +pub mod index_item; +pub mod index; +pub mod search; +pub mod fingerprint; diff --git a/src/ringo/fingerprint/fingerprint.rs b/src/db/fingerprint.rs similarity index 95% rename from src/ringo/fingerprint/fingerprint.rs rename to src/db/fingerprint.rs index dc97a66..7aafa8b 100644 --- a/src/ringo/fingerprint/fingerprint.rs +++ b/src/db/fingerprint.rs @@ -32,7 +32,7 @@ impl<'de> bincode::BorrowDecode<'de> for Fingerprint { #[cfg(test)] mod tests { - use crate::ringo::fingerprint::fingerprint::{Fingerprint, FINGERPRINT_SIZE}; + use crate::db::fingerprint::{Fingerprint, FINGERPRINT_SIZE}; use fixedbitset::FixedBitSet; #[test] diff --git a/src/ringo/ringo/index/index.rs b/src/db/index.rs similarity index 77% rename from src/ringo/ringo/index/index.rs rename to src/db/index.rs index 55e6419..c6ed522 100644 --- a/src/ringo/ringo/index/index.rs +++ b/src/db/index.rs @@ -1,16 +1,17 @@ -use crate::ringo::fingerprint::fingerprint::FINGERPRINT_SIZE; -use crate::ringo::molecule::smiles::reader::molecule::parse_molecule; -use crate::ringo::ringo::index::index_item::IndexItem; + use bincode::encode_into_slice; use std::fs::File; use std::io::{BufRead, BufWriter, Write}; +use crate::db::index_item::IndexItem; +use crate::db::fingerprint::FINGERPRINT_SIZE; +use crate::molecule::smiles::reader::molecule::parse_molecule; #[cfg(windows)] const LINE_ENDING_LENGTH: usize = 2; #[cfg(not(windows))] const LINE_ENDING_LENGTH: usize = 1; -pub(crate) fn index(smiles_file: &str) { +pub fn index_file(smiles_file: &str) { // open file for reading let fi = File::open(smiles_file).expect("Could not open file"); @@ -35,12 +36,13 @@ pub(crate) fn index(smiles_file: &str) { } } + #[cfg(test)] mod test { - use crate::ringo::ringo::index::index::index; + use crate::db::index::index_file; #[test] fn test_index() { - index("molecules.smi"); + index_file("molecules.smi"); } } diff --git a/src/ringo/ringo/index/index_item.rs b/src/db/index_item.rs similarity index 83% rename from src/ringo/ringo/index/index_item.rs rename to src/db/index_item.rs index 74ae080..3749ad8 100644 --- a/src/ringo/ringo/index/index_item.rs +++ b/src/db/index_item.rs @@ -1,4 +1,4 @@ -use crate::ringo::fingerprint::fingerprint::Fingerprint; +use crate::db::fingerprint::Fingerprint; use bincode::{Decode, Encode}; #[derive(Debug, Encode, Decode)] @@ -9,11 +9,11 @@ pub struct IndexItem { #[cfg(test)] mod tests { - use crate::ringo::fingerprint::fingerprint::Fingerprint; - use crate::ringo::ringo::index::index_item::IndexItem; use bincode::config::standard; use bincode::{decode_from_slice, encode_to_vec}; use fixedbitset::FixedBitSet; + use crate::db::fingerprint::Fingerprint; + use crate::db::index_item::IndexItem; #[test] fn test_index_item_encode_decode() { diff --git a/src/ringo/ringo/search/search.rs b/src/db/search.rs similarity index 87% rename from src/ringo/ringo/search/search.rs rename to src/db/search.rs index 2179248..d44d861 100644 --- a/src/ringo/ringo/search/search.rs +++ b/src/db/search.rs @@ -1,6 +1,6 @@ -use crate::ringo::math::similarity::tanimoto::tanimoto_bitset; -use crate::ringo::molecule::smiles::reader::molecule::parse_molecule; -use crate::ringo::ringo::index::index_item::IndexItem; +use crate::math::similarity::tanimoto::tanimoto_bitset; +use crate::molecule::smiles::reader::molecule::parse_molecule; +use crate::db::index_item::IndexItem; use std::fs::File; use std::io::{BufRead, BufReader, Read, Seek}; @@ -43,7 +43,6 @@ pub fn similarity_search( // calculate similarity let similarity = tanimoto_bitset(&index_item.fingerprint.0, &query_fp.0); - // print similarity if it is greater than min_similarity if similarity >= min_similarity { let position = index_item.position; @@ -68,14 +67,18 @@ pub fn similarity_search( results } +fn main() { + println!("db-search"); +} + #[cfg(test)] mod test { - use crate::ringo::ringo::index::index::index; - use crate::ringo::ringo::search::search::similarity_search; + use crate::db::index::index_file; + use crate::db::search::similarity_search; #[test] fn test_similarity_search() { - index("molecles.smi"); + index_file("molecles.smi"); let results = similarity_search("molecules.smi", "CC(C)CC1=CC=C(C=C1)C(C)C(=O)O", 0.7, 100); assert_eq!(results.len(), 1); assert!(results[0].line.starts_with("CC(C)CC1=CC=C(C=C1)C(C)C(=O)O")); diff --git a/src/lib.rs b/src/lib.rs index 6424c7f..9eed548 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,2 +1,3 @@ -mod bin; -pub mod ringo; +pub mod db; +mod math; +mod molecule; diff --git a/src/ringo/math.rs b/src/math.rs similarity index 100% rename from src/ringo/math.rs rename to src/math.rs diff --git a/src/ringo/math/similarity.rs b/src/math/similarity.rs similarity index 100% rename from src/ringo/math/similarity.rs rename to src/math/similarity.rs diff --git a/src/ringo/math/similarity/tanimoto.rs b/src/math/similarity/tanimoto.rs similarity index 93% rename from src/ringo/math/similarity/tanimoto.rs rename to src/math/similarity/tanimoto.rs index 33480df..2f98895 100644 --- a/src/ringo/math/similarity/tanimoto.rs +++ b/src/math/similarity/tanimoto.rs @@ -9,7 +9,7 @@ pub fn tanimoto_bitset(a: &FixedBitSet, b: &FixedBitSet) -> f32 { #[cfg(test)] mod tests { - use crate::ringo::math::similarity::tanimoto::tanimoto_bitset; + use crate::math::similarity::tanimoto::tanimoto_bitset; use fixedbitset::FixedBitSet; #[test] diff --git a/src/molecule.rs b/src/molecule.rs new file mode 100644 index 0000000..4dbc44c --- /dev/null +++ b/src/molecule.rs @@ -0,0 +1,2 @@ +mod model; +pub mod smiles; diff --git a/src/ringo/molecule/model.rs b/src/molecule/model.rs similarity index 100% rename from src/ringo/molecule/model.rs rename to src/molecule/model.rs diff --git a/src/ringo/molecule/model/atom.rs b/src/molecule/model/atom.rs similarity index 91% rename from src/ringo/molecule/model/atom.rs rename to src/molecule/model/atom.rs index 521be5d..b08ddbf 100644 --- a/src/ringo/molecule/model/atom.rs +++ b/src/molecule/model/atom.rs @@ -1,4 +1,4 @@ -use crate::ringo::molecule::model::element::Element; +use crate::molecule::model::element::Element; #[derive(Hash, Eq, PartialEq, Debug)] pub struct Atom { diff --git a/src/ringo/molecule/model/bond.rs b/src/molecule/model/bond.rs similarity index 100% rename from src/ringo/molecule/model/bond.rs rename to src/molecule/model/bond.rs diff --git a/src/ringo/molecule/model/element.rs b/src/molecule/model/element.rs similarity index 100% rename from src/ringo/molecule/model/element.rs rename to src/molecule/model/element.rs diff --git a/src/ringo/molecule/model/molecule.rs b/src/molecule/model/molecule.rs similarity index 93% rename from src/ringo/molecule/model/molecule.rs rename to src/molecule/model/molecule.rs index 354d122..18692cd 100644 --- a/src/ringo/molecule/model/molecule.rs +++ b/src/molecule/model/molecule.rs @@ -1,8 +1,8 @@ -use crate::ringo::fingerprint::fingerprint::{Fingerprint, FINGERPRINT_SIZE}; -use crate::ringo::math::similarity::tanimoto::tanimoto_bitset; -use crate::ringo::molecule::model::atom::Atom; -use crate::ringo::molecule::model::bond::Bond; -use crate::ringo::molecule::smiles::reader::molecule::parse_molecule; +use crate::db::fingerprint::{Fingerprint, FINGERPRINT_SIZE}; +use crate::math::similarity::tanimoto::tanimoto_bitset; +use crate::molecule::model::atom::Atom; +use crate::molecule::model::bond::Bond; +use crate::molecule::smiles::reader::molecule::parse_molecule; use fixedbitset::FixedBitSet; use petgraph::stable_graph::{EdgeIndex, NodeIndex, StableGraph}; use petgraph::visit::EdgeRef; diff --git a/src/molecule/smiles.rs b/src/molecule/smiles.rs new file mode 100644 index 0000000..1077754 --- /dev/null +++ b/src/molecule/smiles.rs @@ -0,0 +1 @@ +pub mod reader; diff --git a/src/ringo/molecule/smiles/reader.rs b/src/molecule/smiles/reader.rs similarity index 74% rename from src/ringo/molecule/smiles/reader.rs rename to src/molecule/smiles/reader.rs index 936cc73..7fb9f5f 100644 --- a/src/ringo/molecule/smiles/reader.rs +++ b/src/molecule/smiles/reader.rs @@ -4,4 +4,4 @@ mod charge; mod element; mod hydrogens; mod isotope; -pub(crate) mod molecule; +pub mod molecule; diff --git a/src/ringo/molecule/smiles/reader/atom.rs b/src/molecule/smiles/reader/atom.rs similarity index 83% rename from src/ringo/molecule/smiles/reader/atom.rs rename to src/molecule/smiles/reader/atom.rs index 9b0cfd1..f7a1b9f 100644 --- a/src/ringo/molecule/smiles/reader/atom.rs +++ b/src/molecule/smiles/reader/atom.rs @@ -1,13 +1,13 @@ -use crate::ringo::molecule::model::atom::Atom; -use crate::ringo::molecule::model::element::Element; -use crate::ringo::molecule::smiles::reader::charge::parse_charge; -use crate::ringo::molecule::smiles::reader::element::parse_element; -use crate::ringo::molecule::smiles::reader::hydrogens::parse_hydrogens; -use crate::ringo::molecule::smiles::reader::isotope::parse_isotope; +use crate::molecule::model::atom::Atom; +use crate::molecule::model::element::Element; +use crate::molecule::smiles::reader::charge::parse_charge; +use crate::molecule::smiles::reader::element::parse_element; +use crate::molecule::smiles::reader::hydrogens::parse_hydrogens; +use crate::molecule::smiles::reader::isotope::parse_isotope; use nom::combinator::opt; use nom::IResult; -pub(crate) fn parse_atom(input: &str) -> IResult<&str, Atom> { +pub fn parse_atom(input: &str) -> IResult<&str, Atom> { let mut isotope: Option = None; let mut charge: Option = None; let mut hs: Option = None; @@ -47,7 +47,7 @@ pub(crate) fn parse_atom(input: &str) -> IResult<&str, Atom> { #[cfg(test)] mod tests { - use crate::ringo::molecule::smiles::reader::atom::parse_atom; + use crate::molecule::smiles::reader::atom::parse_atom; fn do_test_parse_atom(input: &str, atomic_number: u8, charge: i8, hs: u8, isotope: u8) { let (remaining_input, atom) = parse_atom(input).unwrap(); diff --git a/src/ringo/molecule/smiles/reader/bond.rs b/src/molecule/smiles/reader/bond.rs similarity index 90% rename from src/ringo/molecule/smiles/reader/bond.rs rename to src/molecule/smiles/reader/bond.rs index 1b02357..29163ba 100644 --- a/src/ringo/molecule/smiles/reader/bond.rs +++ b/src/molecule/smiles/reader/bond.rs @@ -1,10 +1,10 @@ -use crate::ringo::molecule::model::bond::{Bond, BondOrder}; +use crate::molecule::model::bond::{Bond, BondOrder}; use nom::branch::alt; use nom::bytes::complete::tag; use nom::combinator::map; use nom::IResult; -pub(crate) fn parse_bond(input: &str) -> IResult<&str, Bond> { +pub fn parse_bond(input: &str) -> IResult<&str, Bond> { let (input, bond_order) = alt(( map(tag("="), |_| BondOrder::Double), map(tag("#"), |_| BondOrder::Triple), diff --git a/src/ringo/molecule/smiles/reader/charge.rs b/src/molecule/smiles/reader/charge.rs similarity index 97% rename from src/ringo/molecule/smiles/reader/charge.rs rename to src/molecule/smiles/reader/charge.rs index 71c0e5d..0683260 100644 --- a/src/ringo/molecule/smiles/reader/charge.rs +++ b/src/molecule/smiles/reader/charge.rs @@ -10,7 +10,7 @@ use nom::{ /// * single `+` or `-` sign => return 1 or -1 /// * multiple `+` or `-` signs => return n or -n /// * `+` or `-` sign followed by a number => return n or -n -pub(crate) fn parse_charge(input: &str) -> IResult<&str, i8> { +pub fn parse_charge(input: &str) -> IResult<&str, i8> { let (input, sign) = alt((char('+'), char('-')))(input)?; let charge = match sign { '+' => 1, diff --git a/src/ringo/molecule/smiles/reader/element.rs b/src/molecule/smiles/reader/element.rs similarity index 95% rename from src/ringo/molecule/smiles/reader/element.rs rename to src/molecule/smiles/reader/element.rs index 6b6c830..d63216b 100644 --- a/src/ringo/molecule/smiles/reader/element.rs +++ b/src/molecule/smiles/reader/element.rs @@ -3,7 +3,7 @@ use nom::bytes::complete::tag; use nom::combinator::map_res; use nom::IResult; -pub(crate) fn parse_element(input: &str) -> IResult<&str, u8> { +pub fn parse_element(input: &str) -> IResult<&str, u8> { map_res( alt(( tag("Cl"), diff --git a/src/ringo/molecule/smiles/reader/hydrogens.rs b/src/molecule/smiles/reader/hydrogens.rs similarity index 96% rename from src/ringo/molecule/smiles/reader/hydrogens.rs rename to src/molecule/smiles/reader/hydrogens.rs index 0553f7b..b556419 100644 --- a/src/ringo/molecule/smiles/reader/hydrogens.rs +++ b/src/molecule/smiles/reader/hydrogens.rs @@ -8,7 +8,7 @@ use nom::IResult; /// * H - 1 hydrogen /// * Hn - n hydrogens /// Returns the number of hydrogens -pub(crate) fn parse_hydrogens(input: &str) -> IResult<&str, u8> { +pub fn parse_hydrogens(input: &str) -> IResult<&str, u8> { let single_hydrogen_parser = char('H'); let mut hydrogen_parser = preceded(char('H'), map_res(digit1, str::parse::)); single_hydrogen_parser(input)?; diff --git a/src/ringo/molecule/smiles/reader/isotope.rs b/src/molecule/smiles/reader/isotope.rs similarity index 91% rename from src/ringo/molecule/smiles/reader/isotope.rs rename to src/molecule/smiles/reader/isotope.rs index b13e90b..311bb78 100644 --- a/src/ringo/molecule/smiles/reader/isotope.rs +++ b/src/molecule/smiles/reader/isotope.rs @@ -2,7 +2,7 @@ use nom::{character::complete::digit1, combinator::map_res, IResult}; /// Parses isotope value, that should be a number /// Returns the isotope value -pub(crate) fn parse_isotope(input: &str) -> IResult<&str, u8> { +pub fn parse_isotope(input: &str) -> IResult<&str, u8> { Ok(map_res(digit1, str::parse::)(input)?) } diff --git a/src/ringo/molecule/smiles/reader/molecule.rs b/src/molecule/smiles/reader/molecule.rs similarity index 97% rename from src/ringo/molecule/smiles/reader/molecule.rs rename to src/molecule/smiles/reader/molecule.rs index 3e15b68..64acf53 100644 --- a/src/ringo/molecule/smiles/reader/molecule.rs +++ b/src/molecule/smiles/reader/molecule.rs @@ -1,7 +1,7 @@ -use crate::ringo::molecule::model::bond::{Bond, BondOrder}; -use crate::ringo::molecule::model::molecule::Molecule; -use crate::ringo::molecule::smiles::reader::atom::parse_atom; -use crate::ringo::molecule::smiles::reader::bond::parse_bond; +use crate::molecule::model::bond::{Bond, BondOrder}; +use crate::molecule::model::molecule::Molecule; +use crate::molecule::smiles::reader::atom::parse_atom; +use crate::molecule::smiles::reader::bond::parse_bond; use nom::branch::alt; use nom::character::complete::{char, digit1}; use nom::combinator::{map, map_res}; @@ -15,7 +15,7 @@ fn parse_cycle_digit(input: &str) -> IResult<&str, u8> { map_res(digit1, str::parse::)(input) } -pub(crate) fn parse_molecule(input: &str) -> IResult<&str, Molecule> { +pub fn parse_molecule(input: &str) -> IResult<&str, Molecule> { let mut molecule = Molecule::new(); let mut open_cycles: HashMap = HashMap::new(); let mut stack: Vec<(NodeIndex, BondOrder)> = Vec::new(); diff --git a/src/ringo.rs b/src/ringo.rs deleted file mode 100644 index ee49d68..0000000 --- a/src/ringo.rs +++ /dev/null @@ -1,4 +0,0 @@ -pub mod fingerprint; -pub mod math; -pub mod molecule; -mod ringo; diff --git a/src/ringo/fingerprint.rs b/src/ringo/fingerprint.rs deleted file mode 100644 index c2d67fd..0000000 --- a/src/ringo/fingerprint.rs +++ /dev/null @@ -1 +0,0 @@ -pub mod fingerprint; diff --git a/src/ringo/molecule.rs b/src/ringo/molecule.rs deleted file mode 100644 index d738708..0000000 --- a/src/ringo/molecule.rs +++ /dev/null @@ -1,2 +0,0 @@ -mod model; -pub(crate) mod smiles; diff --git a/src/ringo/molecule/smiles.rs b/src/ringo/molecule/smiles.rs deleted file mode 100644 index bbd3c5b..0000000 --- a/src/ringo/molecule/smiles.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod reader; diff --git a/src/ringo/ringo.rs b/src/ringo/ringo.rs deleted file mode 100644 index 34de02b..0000000 --- a/src/ringo/ringo.rs +++ /dev/null @@ -1,2 +0,0 @@ -mod index; -mod search; diff --git a/src/ringo/ringo/index.rs b/src/ringo/ringo/index.rs deleted file mode 100644 index 3612268..0000000 --- a/src/ringo/ringo/index.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub(crate) mod index; -pub mod index_item; -mod main; diff --git a/src/ringo/ringo/index/main.rs b/src/ringo/ringo/index/main.rs deleted file mode 100644 index 4f841dd..0000000 --- a/src/ringo/ringo/index/main.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println!("ringo-index"); -} diff --git a/src/ringo/ringo/search.rs b/src/ringo/ringo/search.rs deleted file mode 100644 index c6075b6..0000000 --- a/src/ringo/ringo/search.rs +++ /dev/null @@ -1,2 +0,0 @@ -mod main; -pub mod search; diff --git a/src/ringo/ringo/search/main.rs b/src/ringo/ringo/search/main.rs deleted file mode 100644 index 1c46ffe..0000000 --- a/src/ringo/ringo/search/main.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println!("ringo-search"); -}