Rename workspace packages and update Rust imports and usage examples
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "telefind-bot"
|
||||
name = "bot"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
telefind-core = { path = "../core" }
|
||||
core = { path = "../core" }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use telefind_core::{Kind, Media, Query};
|
||||
use search_core::{Kind, Media, Query};
|
||||
pub(crate) enum Input<'a> {
|
||||
Ignore,
|
||||
Help,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Transport-independent Telegram search interaction. The host supplies
|
||||
//! incoming text and sends the returned plain-text labels and URL buttons.
|
||||
mod command;
|
||||
use telefind_core::{Document, Kind, SearchIndex};
|
||||
use search_core::{Document, Kind, SearchIndex};
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct ResultLink {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use telefind_bot::{handle, Reply};
|
||||
use telefind_core::{Document, DocumentId, MemoryIndex, PublicName, SearchIndex};
|
||||
use bot::{handle, Reply};
|
||||
use search_core::{Document, DocumentId, MemoryIndex, PublicName, SearchIndex};
|
||||
|
||||
#[test]
|
||||
fn plain_and_addressed_search_return_public_post_link() {
|
||||
@@ -72,7 +72,7 @@ fn paging_is_stateless_and_rejects_invalid_numbers() {
|
||||
#[test]
|
||||
fn type_filter_is_available_in_search_and_page_commands() {
|
||||
let mut index = MemoryIndex::default();
|
||||
for (id, media) in [(1, None), (2, Some(telefind_core::Media::Video))] {
|
||||
for (id, media) in [(1, None), (2, Some(search_core::Media::Video))] {
|
||||
index
|
||||
.upsert(Document {
|
||||
id: DocumentId::Post {
|
||||
@@ -117,7 +117,7 @@ fn scoped_media_search_keeps_quoted_phrase_and_original_link() {
|
||||
username: PublicName::new("my_feed").unwrap(),
|
||||
title: String::new(),
|
||||
body: body.into(),
|
||||
media: Some(telefind_core::Media::Video),
|
||||
media: Some(search_core::Media::Video),
|
||||
})
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user