From e83f2f7ebbf57ae6431347f828444550161ca103 Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Fri, 24 May 2024 16:53:39 +0200 Subject: [PATCH] Fixed issues in `lib` migration (#5) Fixed some issues I didn't handle when migrating to a library. - added `allow-dirty` to the library being pushed (as the version is updated) - removed unused `main` --- .github/workflows/publish.yml | 1 + src/lib.rs | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d2353b6..ec9b8cd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,3 +32,4 @@ jobs: - uses: katyo/publish-crates@v2 with: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + args: "--allow-dirty" diff --git a/src/lib.rs b/src/lib.rs index 9700ba4..5a77597 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,4 @@ +#![doc = include_str!("../README.md")] + pub mod context; pub mod error; - -#[doc = include_str!("../README.md")] - -fn main() { - println!("Hello, world!"); -}