chiark / gitweb /
Remove lib.rs.
authorSimon Tatham <anakin@pobox.com>
Thu, 1 Feb 2024 08:03:10 +0000 (08:03 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 2 Feb 2024 12:19:18 +0000 (12:19 +0000)
I'm a bit concerned that with a main.rs and a lib.rs, this package
might accidentally have made both a binary and a library crate,
which (as and when I publish it) might cause people to try to use the
library as if it had a stable and committed API.

In fact all the library modules in this source base are considered
internal to the application, and the interfaces between them are
intended to vary however this application finds convenient. So I
shouldn't accidentally imply otherwise.

src/lib.rs [deleted file]
src/main.rs

diff --git a/src/lib.rs b/src/lib.rs
deleted file mode 100644 (file)
index 91110dc..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-pub mod activity_stack;
-pub mod auth;
-pub mod client;
-pub mod coloured_string;
-pub mod config;
-pub mod editor;
-pub mod file;
-pub mod html;
-pub mod login;
-pub mod menu;
-pub mod options;
-pub mod posting;
-pub mod scan_re;
-pub mod text;
-pub mod top_level_error;
-pub mod tui;
-pub mod types;
index 6f2e75b22b1aabed9dd92d4584d77b8773575868..f45a62b43b22c68745ef5d76e94b20a036f5c8b5 100644 (file)
@@ -1,9 +1,27 @@
 use clap::Parser;
 use std::process::ExitCode;
 
-use mastodonochrome::config::ConfigLocation;
-use mastodonochrome::tui::Tui;
-use mastodonochrome::top_level_error::TopLevelError;
+pub mod activity_stack;
+pub mod auth;
+pub mod client;
+pub mod coloured_string;
+pub mod config;
+pub mod editor;
+pub mod file;
+pub mod html;
+pub mod login;
+pub mod menu;
+pub mod options;
+pub mod posting;
+pub mod scan_re;
+pub mod text;
+pub mod top_level_error;
+pub mod tui;
+pub mod types;
+
+use crate::config::ConfigLocation;
+use crate::tui::Tui;
+use crate::top_level_error::TopLevelError;
 
 #[derive(Parser, Debug)]
 struct Args {