mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-22 19:14:31 +03:00
extract tagged string to its own crate
This commit is contained in:
parent
00354771b7
commit
01f3e0f0c4
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -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"
|
||||
|
@ -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
|
||||
|
@ -14,6 +14,5 @@
|
||||
)]
|
||||
|
||||
pub mod git;
|
||||
pub mod types;
|
||||
#[cfg(target_os = "windows")]
|
||||
pub mod windows;
|
||||
|
@ -1,2 +0,0 @@
|
||||
mod tagged_string;
|
||||
pub use tagged_string::*;
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
9
crates/gitbutler-tagged-string/Cargo.toml
Normal file
9
crates/gitbutler-tagged-string/Cargo.toml
Normal 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
|
Loading…
Reference in New Issue
Block a user