CLI app for developers prototyping atproto functionality
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Wire tokio + miette bootstrap for atproto-devtool

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

+18 -4
+2 -2
src/common/diagnostics.rs
··· 42 42 /// 43 43 /// The bytes are cloned into an `Arc<str>`/`Arc<[u8]>` via miette's constructor, 44 44 /// so callers may drop the original slice after this returns. 45 - pub fn named_source_from_bytes(name: impl Into<String>, bytes: &[u8]) -> NamedSource<Arc<[u8]>> { 45 + pub fn named_source_from_bytes(name: impl AsRef<str>, bytes: &[u8]) -> NamedSource<Arc<[u8]>> { 46 46 NamedSource::new(name, Arc::<[u8]>::from(bytes)) 47 47 } 48 48 49 49 /// Build a `NamedSource` from a name and a UTF-8 string slice. 50 - pub fn named_source_from_str(name: impl Into<String>, text: &str) -> NamedSource<String> { 50 + pub fn named_source_from_str(name: impl AsRef<str>, text: &str) -> NamedSource<String> { 51 51 NamedSource::new(name, text.to_string()) 52 52 }
+9
src/lib.rs
··· 1 + //! `atproto-devtool` library crate. 2 + //! 3 + //! The binary at `src/main.rs` is a thin tokio bootstrap over [`cli::run`]. 4 + //! All pipeline modules are re-exported here so integration tests under 5 + //! `tests/*.rs` can reach them as `atproto_devtool::commands::test::labeler::...`. 6 + 7 + pub mod cli; 8 + pub mod commands; 9 + pub mod common;
+7 -2
src/main.rs
··· 1 - fn main() { 2 - println!("Hello, world!"); 1 + //! `atproto-devtool` binary entry point. 2 + 3 + use miette::Result; 4 + 5 + #[tokio::main(flavor = "current_thread")] 6 + async fn main() -> Result<()> { 7 + atproto_devtool::cli::run().await 3 8 }