diff --git a/Cargo.lock b/Cargo.lock index 14ce119..8424d65 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -493,6 +493,38 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" +[[package]] +name = "constellation" +version = "0.1.0" +dependencies = [ + "anyhow", + "askama", + "axum", + "axum-extra", + "axum-metrics", + "bincode", + "clap", + "ctrlc", + "flume", + "fs4", + "headers-accept", + "links", + "mediatype", + "metrics", + "metrics-exporter-prometheus", + "metrics-process", + "rocksdb", + "serde", + "serde_with", + "tempfile", + "tinyjson", + "tokio", + "tokio-util", + "tower-http", + "tungstenite", + "zstd", +] + [[package]] name = "core-foundation" version = "0.9.4" @@ -1132,38 +1164,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "link_aggregator" -version = "0.1.0" -dependencies = [ - "anyhow", - "askama", - "axum", - "axum-extra", - "axum-metrics", - "bincode", - "clap", - "ctrlc", - "flume", - "fs4", - "headers-accept", - "links", - "mediatype", - "metrics", - "metrics-exporter-prometheus", - "metrics-process", - "rocksdb", - "serde", - "serde_with", - "tempfile", - "tinyjson", - "tokio", - "tokio-util", - "tower-http", - "tungstenite", - "zstd", -] - [[package]] name = "links" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index c855f15..7d47771 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,5 +2,5 @@ resolver = "2" members = [ "links", - "link_aggregator", + "constellation", ] diff --git a/link_aggregator/Cargo.toml b/constellation/Cargo.toml similarity index 97% rename from link_aggregator/Cargo.toml rename to constellation/Cargo.toml index 7a7d2e8..ef78a02 100644 --- a/link_aggregator/Cargo.toml +++ b/constellation/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "link_aggregator" +name = "constellation" version = "0.1.0" edition = "2021" diff --git a/link_aggregator/readme.md b/constellation/readme.md similarity index 99% rename from link_aggregator/readme.md rename to constellation/readme.md index 8f5bd71..7947ec5 100644 --- a/link_aggregator/readme.md +++ b/constellation/readme.md @@ -1,4 +1,4 @@ -# link_aggregator +# constellation 🌌 ## endpoints diff --git a/link_aggregator/src/consumer/jetstream.rs b/constellation/src/consumer/jetstream.rs similarity index 100% rename from link_aggregator/src/consumer/jetstream.rs rename to constellation/src/consumer/jetstream.rs diff --git a/link_aggregator/src/consumer/jsonl_file.rs b/constellation/src/consumer/jsonl_file.rs similarity index 100% rename from link_aggregator/src/consumer/jsonl_file.rs rename to constellation/src/consumer/jsonl_file.rs diff --git a/link_aggregator/src/consumer/mod.rs b/constellation/src/consumer/mod.rs similarity index 99% rename from link_aggregator/src/consumer/mod.rs rename to constellation/src/consumer/mod.rs index 47cf3b5..fc6586b 100644 --- a/link_aggregator/src/consumer/mod.rs +++ b/constellation/src/consumer/mod.rs @@ -3,9 +3,9 @@ mod jsonl_file; use crate::storage::LinkStorage; use anyhow::Result; +use constellation::{ActionableEvent, RecordId}; use jetstream::consume_jetstream; use jsonl_file::consume_jsonl_file; -use link_aggregator::{ActionableEvent, RecordId}; use links::collect_links; use metrics::{counter, describe_counter, describe_histogram, histogram, Unit}; use std::path::PathBuf; diff --git a/link_aggregator/src/lib.rs b/constellation/src/lib.rs similarity index 100% rename from link_aggregator/src/lib.rs rename to constellation/src/lib.rs diff --git a/link_aggregator/src/main.rs b/constellation/src/main.rs similarity index 100% rename from link_aggregator/src/main.rs rename to constellation/src/main.rs diff --git a/link_aggregator/src/server/acceptable.rs b/constellation/src/server/acceptable.rs similarity index 100% rename from link_aggregator/src/server/acceptable.rs rename to constellation/src/server/acceptable.rs diff --git a/link_aggregator/src/server/filters.rs b/constellation/src/server/filters.rs similarity index 100% rename from link_aggregator/src/server/filters.rs rename to constellation/src/server/filters.rs diff --git a/link_aggregator/src/server/mod.rs b/constellation/src/server/mod.rs similarity index 99% rename from link_aggregator/src/server/mod.rs rename to constellation/src/server/mod.rs index 469694f..4efb2f1 100644 --- a/link_aggregator/src/server/mod.rs +++ b/constellation/src/server/mod.rs @@ -9,7 +9,7 @@ use tokio::task::block_in_place; use tokio_util::sync::CancellationToken; use crate::storage::LinkReader; -use link_aggregator::RecordId; +use constellation::RecordId; mod acceptable; mod filters; diff --git a/link_aggregator/src/storage/mem_store.rs b/constellation/src/storage/mem_store.rs similarity index 99% rename from link_aggregator/src/storage/mem_store.rs rename to constellation/src/storage/mem_store.rs index e256e7a..9fa0665 100644 --- a/link_aggregator/src/storage/mem_store.rs +++ b/constellation/src/storage/mem_store.rs @@ -1,6 +1,6 @@ use super::{LinkReader, LinkStorage, PagedAppendingCollection, StorageStats}; use anyhow::Result; -use link_aggregator::{ActionableEvent, Did, RecordId}; +use constellation::{ActionableEvent, Did, RecordId}; use links::CollectedLink; use std::collections::HashMap; use std::sync::{Arc, Mutex}; diff --git a/link_aggregator/src/storage/mod.rs b/constellation/src/storage/mod.rs similarity index 99% rename from link_aggregator/src/storage/mod.rs rename to constellation/src/storage/mod.rs index 9ea0020..05e41b3 100644 --- a/link_aggregator/src/storage/mod.rs +++ b/constellation/src/storage/mod.rs @@ -1,5 +1,5 @@ use anyhow::Result; -use link_aggregator::{ActionableEvent, RecordId}; +use constellation::{ActionableEvent, RecordId}; use std::collections::HashMap; pub mod mem_store; diff --git a/link_aggregator/src/storage/rocks_store.rs b/constellation/src/storage/rocks_store.rs similarity index 99% rename from link_aggregator/src/storage/rocks_store.rs rename to constellation/src/storage/rocks_store.rs index c6a1b8d..6932c29 100644 --- a/link_aggregator/src/storage/rocks_store.rs +++ b/constellation/src/storage/rocks_store.rs @@ -1,7 +1,7 @@ use super::{ActionableEvent, LinkReader, LinkStorage, PagedAppendingCollection, StorageStats}; use anyhow::{bail, Result}; use bincode::Options as BincodeOptions; -use link_aggregator::{Did, RecordId}; +use constellation::{Did, RecordId}; use links::CollectedLink; use rocksdb::{ AsColumnFamilyRef, ColumnFamilyDescriptor, DBWithThreadMode, IteratorMode, MergeOperands, diff --git a/link_aggregator/templates/base.html.j2 b/constellation/templates/base.html.j2 similarity index 89% rename from link_aggregator/templates/base.html.j2 rename to constellation/templates/base.html.j2 index 17968df..32f4b25 100644 --- a/link_aggregator/templates/base.html.j2 +++ b/constellation/templates/base.html.j2 @@ -39,7 +39,7 @@ -

This is an atproto link aggregator server from µcosm!

+

This is an atproto link aggregator server from µcosm!

{% block content %}{% endblock %}