extract tagged string to its own crate

This commit is contained in:
Kiril Videlov 2024-07-09 14:57:43 +02:00
parent 00354771b7
commit 01f3e0f0c4
No known key found for this signature in database
GPG Key ID: A4C733025427C471
8 changed files with 22 additions and 5 deletions

8
Cargo.lock generated
View File

@ -2342,6 +2342,7 @@ version = "0.0.0"
dependencies = [
"git2",
"gitbutler-core",
"gitbutler-tagged-string",
"regex",
"serde",
"thiserror",
@ -2425,6 +2426,13 @@ dependencies = [
"tracing",
]
[[package]]
name = "gitbutler-tagged-string"
version = "0.0.0"
dependencies = [
"serde",
]
[[package]]
name = "gitbutler-tauri"
version = "0.0.0"

View File

@ -26,7 +26,8 @@ members = [
"crates/gitbutler-storage",
"crates/gitbutler-fs",
"crates/gitbutler-time",
"crates/gitbutler-commit",
"crates/gitbutler-commit",
"crates/gitbutler-tagged-string",
]
resolver = "2"
@ -65,6 +66,7 @@ gitbutler-storage = { path = "crates/gitbutler-storage" }
gitbutler-fs = { path = "crates/gitbutler-fs" }
gitbutler-time = { path = "crates/gitbutler-time" }
gitbutler-commit = { path = "crates/gitbutler-commit" }
gitbutler-tagged-string = { path = "crates/gitbutler-tagged-string" }
[profile.release]
codegen-units = 1 # Compile crates one after another so the compiler can optimize better

View File

@ -14,6 +14,5 @@
)]
pub mod git;
pub mod types;
#[cfg(target_os = "windows")]
pub mod windows;

View File

@ -1,2 +0,0 @@
mod tagged_string;
pub use tagged_string::*;

View File

@ -9,5 +9,6 @@ publish = false
regex = "1.10"
git2.workspace = true
gitbutler-core.workspace = true
gitbutler-tagged-string.workspace = true
serde = { workspace = true, features = ["std"]}
thiserror.workspace = true

View File

@ -1,5 +1,5 @@
mod refname;
use gitbutler_core::types::TaggedString;
use gitbutler_tagged_string::TaggedString;
pub use refname::{LocalRefname, Refname, RemoteRefname, VirtualRefname};
use regex::Regex;

View File

@ -0,0 +1,9 @@
[package]
name = "gitbutler-tagged-string"
version = "0.0.0"
edition = "2021"
authors = ["GitButler <gitbutler@gitbutler.com>"]
publish = false
[dependencies]
serde.workspace = true