@@ -22,12 +22,13 @@ tauri = ["dep:tauri"]
2222path-bytes = [" dep:bstr" ]
2323# # Make legacy functionality available.
2424legacy = [
25+ " but-ctx/legacy" ,
26+ " but-workspace/legacy" ,
2527 " dep:gitbutler-user" ,
2628 " dep:gitbutler-project" ,
2729 " dep:gitbutler-branch" ,
2830 " dep:gitbutler-branch-actions" ,
2931 " dep:gitbutler-commit" ,
30- " dep:but-ctx" ,
3132 " dep:gitbutler-reference" ,
3233 " dep:gitbutler-stack" ,
3334 " dep:gitbutler-repo" ,
@@ -36,35 +37,50 @@ legacy = [
3637 " dep:gitbutler-operating-modes" ,
3738 " dep:gitbutler-sync" ,
3839 " dep:gitbutler-oplog" ,
40+ " dep:but-action" ,
41+ " dep:but-hunk-assignment" ,
42+ " dep:but-hunk-dependency" ,
43+ " dep:but-claude" ,
44+ " dep:but-rules" ,
45+ " dep:but-gerrit" ,
46+ " dep:but-worktrees" ,
3947]
4048
4149
4250[dependencies ]
51+ but-serde.workspace = true
52+ but-path.workspace = true
53+ but-api-macros.workspace = true
54+ but-oxidize.workspace = true
55+ but-error.workspace = true
56+ but-core.workspace = true
57+ but-graph.workspace = true
58+ but-ctx.workspace = true
59+ but-workspace.workspace = true
4360but-settings.workspace = true
44- but-github = { workspace = true , features = [" legacy" ] }
4561but-secret.workspace = true
46- but-workspace = { workspace = true , features = [" legacy" ] }
47- but-worktrees.workspace = true
48- but-core.workspace = true
49- but-gerrit.workspace = true
50- but-hunk-assignment.workspace = true
51- but-action.workspace = true
52- but-api-macros.workspace = true
5362but-rebase.workspace = true
54- but-serde.workspace = true
55- but-graph.workspace = true
56- but-meta = { workspace = true , features = [" legacy" ] }
57- but-claude.workspace = true
5863but-cherry-apply.workspace = true
59- but-hunk-dependency.workspace = true
60- but-path.workspace = true
61- but-forge-storage.workspace = true
62- but-error.workspace = true
6364but-db.workspace = true
64- but-rules.workspace = true
65- but-oxidize.workspace = true
6665but-forge.workspace = true
67- but-ctx = {workspace = true , optional = true }
66+ but-forge-storage.workspace = true
67+ # needs `gitbutler_user::User`, which can probably be ported over.
68+ but-github = { workspace = true , features = [" legacy" ] }
69+ # 'legacy' is needed while we only have `virtual-branches.toml`
70+ but-meta = { workspace = true , features = [" legacy" ] }
71+ # 'legacy' is needed while this is only a sketch of what the oplog could be.
72+ # For single-branch testing, we also want the oplog and just take it as it is.
73+ but-oplog = { workspace = true , features = [" legacy" ] }
74+
75+ # What follows is *basically* newly written crates that are built on top of legacy,
76+ # so need some refactoring/rethinking to become usable.
77+ but-action = { workspace = true , optional = true }
78+ but-hunk-assignment = { workspace = true , optional = true }
79+ but-hunk-dependency = { workspace = true , optional = true }
80+ but-claude = { workspace = true , optional = true }
81+ but-rules = { workspace = true , optional = true }
82+ but-gerrit = { workspace = true , optional = true }
83+ but-worktrees = { workspace = true , optional = true }
6884
6985gitbutler-user = {workspace = true , optional = true }
7086gitbutler-project = {workspace = true , optional = true }
0 commit comments