refactor: reexport some items
This commit is contained in:
parent
fc9c7b1971
commit
f846ec8837
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#[cfg(feature = "logic")] #[macro_use] extern crate failure;
|
#[cfg(feature = "logic")] #[macro_use] extern crate failure;
|
||||||
#[cfg(feature = "logic")] #[macro_use] extern crate lazy_static;
|
#[cfg(feature = "logic")] #[macro_use] extern crate lazy_static;
|
||||||
|
pub extern crate ffxiv_types;
|
||||||
#[macro_use] extern crate serde_derive;
|
#[macro_use] extern crate serde_derive;
|
||||||
|
|
||||||
#[cfg(feature = "logic")]
|
#[cfg(feature = "logic")]
|
||||||
|
@ -11,3 +12,6 @@ pub mod logic;
|
||||||
|
|
||||||
pub mod models;
|
pub mod models;
|
||||||
crate mod util;
|
crate mod util;
|
||||||
|
|
||||||
|
#[cfg(feature = "logic")]
|
||||||
|
pub use crate::logic::*;
|
||||||
|
|
|
@ -26,6 +26,12 @@ pub mod character;
|
||||||
pub mod free_company;
|
pub mod free_company;
|
||||||
pub mod search;
|
pub mod search;
|
||||||
|
|
||||||
|
pub use self::{
|
||||||
|
character::parse as parse_character,
|
||||||
|
free_company::parse as parse_free_company,
|
||||||
|
search::*,
|
||||||
|
};
|
||||||
|
|
||||||
crate fn plain_parse(html: &Html, select: &scraper::Selector) -> Result<String> {
|
crate fn plain_parse(html: &Html, select: &scraper::Selector) -> Result<String> {
|
||||||
let string = html
|
let string = html
|
||||||
.select(select)
|
.select(select)
|
||||||
|
|
|
@ -8,6 +8,11 @@ use scraper::Html;
|
||||||
pub mod character;
|
pub mod character;
|
||||||
pub mod free_company;
|
pub mod free_company;
|
||||||
|
|
||||||
|
pub use self::{
|
||||||
|
character::parse as parse_character_search,
|
||||||
|
free_company::parse as parse_free_company_search,
|
||||||
|
};
|
||||||
|
|
||||||
selectors!(
|
selectors!(
|
||||||
PAGINATION_TOTAL => ".parts__total";
|
PAGINATION_TOTAL => ".parts__total";
|
||||||
PAGINATION_PAGES => ".btn__pager__current";
|
PAGINATION_PAGES => ".btn__pager__current";
|
||||||
|
|
Loading…
Reference in New Issue