Skip to content

Commit

Permalink
Move backend-local-server/* to the root of the project
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyagr committed Mar 15, 2024
1 parent d8d2110 commit 54eecca
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 46 deletions.
50 changes: 41 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,47 @@
[workspace]
members = ["backend-tauri"]
default-members = ["."]
resolver = "2"

[package]
name = "diffedit3"
description = "Edit diffs in a 3-pane view"
license = { workspace = true }
repository = { workspace = true }
readme = { workspace = true }
version = { workspace = true }
edition = { workspace = true }
include = ["/src", "/webapp/dist", "/*.md"]

[workspace.package]
version = "0.1.0" # Also update package.json and tauri.conf.json
version = "0.1.0" # Also update package.json and tauri.conf.json
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/ilyagr/diffedit3"

[workspace]
members = [ "backend-tauri", "backend-local-server"]
default-members = [
"backend-local-server",
# `cargo build` should ignore the Tauri binary.
# `cargo tauri build` must be used for that.
]
resolver = "2"
[dependencies]
clap = { version = "4.5.0", features = ["derive"] }
indexmap = { version = "2.2.3", features = ["serde"] }
open = "5.0.1"
parking_lot = "0.12.1"
poem = { version = "2.0.0", features = ["embed"] }
rust-embed = { version = "8.2.0" }
serde = { version = "1.0.196", features = ["serde_derive"] }
thiserror = "1.0.57"
tokio = { version = "1.36.0", features = [
"macros",
"rt-multi-thread",
"signal",
] }
toml = { version = "0.8.10", features = ["indexmap"] }
tracing-subscriber = "0.3.18"
walkdir = "2.4.0"

[dev-dependencies]
insta = { version = "1.34.0", features = [
"redactions",
"serde",
"yaml",
"json",
] }
30 changes: 0 additions & 30 deletions backend-local-server/Cargo.toml

This file was deleted.

4 changes: 0 additions & 4 deletions backend-local-server/TODOs.md

This file was deleted.

1 change: 0 additions & 1 deletion backend-local-server/webapp-dist

This file was deleted.

2 changes: 1 addition & 1 deletion backend-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
indexmap = { version = "2.2.3", features = ["serde"] }
clap = { version = "4.5.0", features = ["derive"] }
diffedit3 = { path = "../backend-local-server" }
diffedit3 = { path = ".." }
parking_lot = "0.12.1"

[features]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::DataInterface;
type DataInterfacePointer = Arc<Mutex<Box<dyn DataInterface>>>;

#[derive(rust_embed::RustEmbed)]
#[folder = "webapp-dist/"]
#[folder = "webapp/dist/"]
struct StaticFiles;

pub type ExitCode = i32;
Expand Down
File renamed without changes.

0 comments on commit 54eecca

Please sign in to comment.