server: rename crate and binary to letterbox-server
This commit is contained in:
parent
aa9a243894
commit
b7dcb2e875
82
Cargo.lock
generated
82
Cargo.lock
generated
@ -2863,6 +2863,47 @@ dependencies = [
|
||||
"web-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "letterbox-server"
|
||||
version = "0.0.77"
|
||||
dependencies = [
|
||||
"ammonia",
|
||||
"anyhow",
|
||||
"async-graphql",
|
||||
"async-graphql-rocket",
|
||||
"async-trait",
|
||||
"build-info",
|
||||
"build-info-build",
|
||||
"cacher",
|
||||
"chrono",
|
||||
"clap",
|
||||
"css-inline",
|
||||
"html-escape",
|
||||
"linkify",
|
||||
"log",
|
||||
"lol_html",
|
||||
"mailparse",
|
||||
"maplit",
|
||||
"memmap",
|
||||
"notmuch",
|
||||
"opentelemetry",
|
||||
"reqwest 0.12.9",
|
||||
"rocket",
|
||||
"rocket_cors",
|
||||
"scraper",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"shared",
|
||||
"sqlx",
|
||||
"tantivy",
|
||||
"thiserror 1.0.69",
|
||||
"tokio 1.42.0",
|
||||
"tracing",
|
||||
"url",
|
||||
"urlencoding",
|
||||
"xtracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "levenshtein_automata"
|
||||
version = "0.2.1"
|
||||
@ -5137,47 +5178,6 @@ dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "server"
|
||||
version = "0.0.77"
|
||||
dependencies = [
|
||||
"ammonia",
|
||||
"anyhow",
|
||||
"async-graphql",
|
||||
"async-graphql-rocket",
|
||||
"async-trait",
|
||||
"build-info",
|
||||
"build-info-build",
|
||||
"cacher",
|
||||
"chrono",
|
||||
"clap",
|
||||
"css-inline",
|
||||
"html-escape",
|
||||
"linkify",
|
||||
"log",
|
||||
"lol_html",
|
||||
"mailparse",
|
||||
"maplit",
|
||||
"memmap",
|
||||
"notmuch",
|
||||
"opentelemetry",
|
||||
"reqwest 0.12.9",
|
||||
"rocket",
|
||||
"rocket_cors",
|
||||
"scraper",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"shared",
|
||||
"sqlx",
|
||||
"tantivy",
|
||||
"thiserror 1.0.69",
|
||||
"tokio 1.42.0",
|
||||
"tracing",
|
||||
"url",
|
||||
"urlencoding",
|
||||
"xtracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "servo_arc"
|
||||
version = "0.1.1"
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
[package]
|
||||
name = "server"
|
||||
name = "letterbox-server"
|
||||
version = "0.0.77"
|
||||
edition = "2021"
|
||||
default-run = "server"
|
||||
default-run = "letterbox-server"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
||||
@ -7,6 +7,14 @@ use std::{error::Error, io::Cursor, str::FromStr};
|
||||
|
||||
use async_graphql::{extensions, http::GraphiQLSource, EmptySubscription, Schema};
|
||||
use async_graphql_rocket::{GraphQLQuery, GraphQLRequest, GraphQLResponse};
|
||||
#[cfg(feature = "tantivy")]
|
||||
use letterbox_server::tantivy::TantivyConnection;
|
||||
use letterbox_server::{
|
||||
config::Config,
|
||||
error::ServerError,
|
||||
graphql::{Attachment, GraphqlSchema, Mutation, QueryRoot},
|
||||
nm::{attachment_bytes, cid_attachment_bytes},
|
||||
};
|
||||
use notmuch::{Notmuch, NotmuchError, ThreadSet};
|
||||
use rocket::{
|
||||
fairing::AdHoc,
|
||||
@ -17,14 +25,6 @@ use rocket::{
|
||||
Response, State,
|
||||
};
|
||||
use rocket_cors::{AllowedHeaders, AllowedOrigins};
|
||||
#[cfg(feature = "tantivy")]
|
||||
use server::tantivy::TantivyConnection;
|
||||
use server::{
|
||||
config::Config,
|
||||
error::ServerError,
|
||||
graphql::{Attachment, GraphqlSchema, Mutation, QueryRoot},
|
||||
nm::{attachment_bytes, cid_attachment_bytes},
|
||||
};
|
||||
use sqlx::postgres::PgPool;
|
||||
|
||||
#[get("/show/<query>/pretty")]
|
||||
Loading…
x
Reference in New Issue
Block a user