-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
573 lines (522 loc) · 24.6 KB
/
Copy pathflake.nix
File metadata and controls
573 lines (522 loc) · 24.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
{
description = "Traverse - Chain-Independent ZK Storage Path Generator with Isolated Ecosystem Builds";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
crane = {
url = "github:ipetkov/crane";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, rust-overlay, flake-utils, crane, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
rustToolchain = pkgs.rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "rust-analyzer" ];
};
craneLib = (crane.mkLib pkgs).overrideToolchain rustToolchain;
# Import Solana tools from zero.nix for e2e testing
solanaTools = {}; # zero-nix.packages.${system} or {};
# Create source derivations with ecosystem-specific workspace files
coreSrc = pkgs.runCommand "core-source" {} ''
cp -r ${./.} $out
chmod -R +w $out
cp $out/workspace-configs/Cargo.toml.core $out/Cargo.toml
cp $out/workspace-configs/Cargo.lock.core $out/Cargo.lock
# Clean up git and other development files
rm -rf $out/.git $out/.github $out/target $out/result*
'';
# Core-only source (just traverse-core, no valence)
coreOnlySrc = pkgs.runCommand "core-only-source" {} ''
cp -r ${./.} $out
chmod -R +w $out
# Create core-only workspace configuration
cat > $out/Cargo.toml << 'EOF'
[workspace]
members = [
"crates/traverse-core",
]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["Timewave Labs"]
license = "Apache-2.0"
repository = "https://github.com/timewave-computer/traverse"
homepage = "https://github.com/timewave-computer/traverse"
description = "Chain-independent ZK storage path generator for blockchain state verification"
keywords = ["zk", "blockchain", "cosmos", "storage", "proof"]
categories = ["cryptography", "development-tools"]
[workspace.dependencies]
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
hex = { version = "0.4", default-features = false, features = ["alloc"] }
sha2 = { version = "0.10", default-features = false }
keccak = { version = "0.1", default-features = false }
tiny-keccak = { version = "2.0", default-features = false, features = ["keccak"] }
clap = { version = "4.0", features = ["derive"] }
tracing = "0.1"
tracing-subscriber = "0.3"
thiserror = "1.0"
tokio = { version = "1.0", features = ["full"] }
proptest = "1.0"
tempfile = "3.0"
anyhow = { version = "1.0", default-features = false }
dotenv = "0.15"
toml = "0.8"
EOF
# Remove Cargo.lock since we'll let Cargo generate it
rm -f $out/Cargo.lock
# Remove all non-core crates
find $out/crates -name "traverse-*" -not -name "traverse-core" -type d -exec rm -rf {} +
# Clean up git and other development files
rm -rf $out/.git $out/.github $out/target $out/result*
'';
ethereumSrc = pkgs.runCommand "ethereum-source" {} ''
cp -r ${./.} $out
chmod -R +w $out
cp $out/workspace-configs/Cargo.toml.ethereum $out/Cargo.toml
cp $out/workspace-configs/Cargo.lock.ethereum $out/Cargo.lock
# Remove Solana crate to avoid any conflicts
rm -rf $out/crates/traverse-solana
# Remove Cosmos crate to avoid potential conflicts
rm -rf $out/crates/traverse-cosmos
# Remove non-Ethereum CLI crates
rm -rf $out/crates/traverse-cli-solana
rm -rf $out/crates/traverse-cli-cosmos
# Clean up git and other development files
rm -rf $out/.git $out/.github $out/target $out/result*
'';
solanaSrc = pkgs.runCommand "solana-source" {} ''
cp -r ${./.} $out
chmod -R +w $out
cp $out/workspace-configs/Cargo.toml.solana $out/Cargo.toml
cp $out/workspace-configs/Cargo.lock.solana $out/Cargo.lock
# Remove Ethereum crate to avoid any conflicts
rm -rf $out/crates/traverse-ethereum
# Remove Cosmos crate to avoid potential conflicts
rm -rf $out/crates/traverse-cosmos
# Remove non-Solana CLI crates
rm -rf $out/crates/traverse-cli-ethereum
rm -rf $out/crates/traverse-cli-cosmos
# Clean up git and other development files
rm -rf $out/.git $out/.github $out/target $out/result*
'';
# Cosmos source with cosmos workspace
cosmosSrc = pkgs.runCommand "cosmos-source" {} ''
cp -r ${./.} $out
chmod -R +w $out
cp $out/workspace-configs/Cargo.toml.cosmos $out/Cargo.toml
cp $out/workspace-configs/Cargo.lock.cosmos $out/Cargo.lock
# Remove other ecosystem crates to avoid conflicts
rm -rf $out/crates/traverse-ethereum
rm -rf $out/crates/traverse-solana
# Remove non-Cosmos CLI crates
rm -rf $out/crates/traverse-cli-ethereum
rm -rf $out/crates/traverse-cli-solana
# Clean up git and other development files
rm -rf $out/.git $out/.github $out/target $out/result*
'';
# Full source for builds that need everything (currently unused)
fullSrc = ./.;
# Common build inputs for all ecosystems
commonBuildInputs = with pkgs; [
openssl
# SSL certificate support
cacert
curl
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.CoreFoundation
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
];
# Native build inputs (available at build time)
commonNativeBuildInputs = with pkgs; [
pkg-config # pkg-config must be in nativeBuildInputs to be available during build
git # Git must be available during build for cargo to fetch dependencies
];
# Common args for all builds (without src - that's ecosystem-specific)
commonArgs = {
buildInputs = commonBuildInputs;
nativeBuildInputs = commonNativeBuildInputs;
strictDeps = true;
cargoVendorDir = null; # Skip vendoring to avoid Cargo.lock conflicts
# Override all cargo commands to avoid --locked flag
cargoTestCommand = "cargo test --release";
cargoCheckCommand = "cargo check --release";
cargoBuildCommand = "cargo build --release";
cargoTestExtraArgs = ""; # Ensure no --locked flag is passed to tests
# SSL certificate configuration
SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
CARGO_NET_GIT_FETCH_WITH_CLI = "true";
# Git configuration for SSL
GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
# OpenSSL configuration for cargo builds
OPENSSL_DIR = "${pkgs.openssl.dev}";
OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib";
OPENSSL_INCLUDE_DIR = "${pkgs.openssl.dev}/include";
};
# Core-only crates (just traverse-core)
coreOnlyCargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
src = coreOnlySrc;
pname = "traverse-core-only-deps";
cargoExtraArgs = "--package traverse-core";
});
# Core + Valence crates (shared by all ecosystems) - use core source filter
coreCargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
src = coreSrc;
pname = "traverse-core-deps";
cargoExtraArgs = "--package traverse-core --package traverse-valence";
});
# Ethereum ecosystem build (with Alloy dependencies) - use ethereum source filter
ethereumCargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
src = ethereumSrc;
pname = "traverse-ethereum-deps";
cargoArtifacts = coreCargoArtifacts;
cargoExtraArgs = "--no-default-features --features ethereum,std --package traverse-ethereum --package traverse-valence";
});
# Solana ecosystem build (with Solana SDK dependencies) - use solana source filter
solanaCargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
src = solanaSrc;
pname = "traverse-solana-deps";
cargoArtifacts = coreCargoArtifacts;
cargoExtraArgs = "--no-default-features --features solana,anchor --package traverse-solana";
});
# Cosmos ecosystem build
cosmosCargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
src = cosmosSrc;
pname = "traverse-cosmos-deps";
cargoArtifacts = coreCargoArtifacts;
cargoExtraArgs = "--no-default-features --features cosmos,std --package traverse-cosmos --package traverse-cli-core --package traverse-cli-cosmos";
});
# Ethereum CLI dependencies
ethereumCliCargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
src = ethereumSrc;
pname = "traverse-ethereum-cli-deps";
cargoArtifacts = ethereumCargoArtifacts;
cargoExtraArgs = "--no-default-features --features ethereum,std --package traverse-cli-core --package traverse-cli-ethereum";
});
# Solana CLI dependencies
solanaCliCargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
src = solanaSrc;
pname = "traverse-solana-cli-deps";
cargoArtifacts = solanaCargoArtifacts;
cargoExtraArgs = "--no-default-features --features solana,std,anchor --package traverse-cli-core --package traverse-cli-solana";
});
# Cosmos CLI dependencies
cosmosCliCargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
src = cosmosSrc;
pname = "traverse-cosmos-cli-deps";
cargoArtifacts = cosmosCargoArtifacts;
cargoExtraArgs = "--no-default-features --features cosmos,std --package traverse-cli-core --package traverse-cli-cosmos";
});
in
{
# Isolated ecosystem packages
packages = {
# Core package (shared)
traverse-core = craneLib.buildPackage (commonArgs // {
src = coreSrc;
pname = "traverse-core";
cargoArtifacts = coreCargoArtifacts;
cargoExtraArgs = "--package traverse-core";
cargoTestCommand = "true"; # Skip tests during build
doCheck = false; # Disable checks to avoid test compilation
});
# Ethereum ecosystem (Alloy-based)
traverse-ethereum = craneLib.buildPackage (commonArgs // {
src = ethereumSrc;
pname = "traverse-ethereum";
cargoArtifacts = ethereumCargoArtifacts;
cargoExtraArgs = "--no-default-features --features ethereum,std --package traverse-ethereum";
cargoTestCommand = "true"; # Skip tests during build
doCheck = false; # Disable checks to avoid test compilation
});
traverse-ethereum-cli = craneLib.buildPackage (commonArgs // {
src = ethereumSrc;
pname = "traverse-ethereum-cli";
cargoArtifacts = ethereumCliCargoArtifacts;
cargoExtraArgs = "--no-default-features --features ethereum,std --bin traverse-ethereum -p traverse-cli-ethereum";
});
# Solana ecosystem (Solana SDK-based)
traverse-solana = craneLib.buildPackage (commonArgs // {
src = solanaSrc;
pname = "traverse-solana";
cargoArtifacts = solanaCargoArtifacts;
cargoExtraArgs = "--no-default-features --features solana,anchor --package traverse-solana";
cargoTestCommand = "true"; # Skip tests during build
doCheck = false; # Disable checks to avoid test compilation
});
traverse-solana-cli = craneLib.buildPackage (commonArgs // {
src = solanaSrc;
pname = "traverse-solana-cli";
cargoArtifacts = solanaCliCargoArtifacts;
cargoExtraArgs = "--no-default-features --features solana,std,anchor --bin traverse-solana -p traverse-cli-solana";
cargoTestCommand = "true"; # Skip tests during build
doCheck = false; # Disable checks to avoid test compilation
});
# Cosmos ecosystem
traverse-cosmos = craneLib.buildPackage (commonArgs // {
src = cosmosSrc;
pname = "traverse-cosmos";
cargoArtifacts = cosmosCargoArtifacts;
cargoExtraArgs = "--no-default-features --features cosmos,std --package traverse-cosmos";
cargoTestCommand = "true"; # Skip tests during build
doCheck = false; # Disable checks to avoid test compilation
});
traverse-cosmos-cli = craneLib.buildPackage (commonArgs // {
src = cosmosSrc;
pname = "traverse-cosmos-cli";
cargoArtifacts = cosmosCliCargoArtifacts;
cargoExtraArgs = "--no-default-features --features cosmos,std --bin traverse-cosmos -p traverse-cli-cosmos";
});
# Default to core
default = self.packages.${system}.traverse-core;
};
# Isolated test derivations for each ecosystem
checks = {
# Core tests (no ecosystem dependencies, no valence)
traverse-core-tests = craneLib.cargoTest (commonArgs // {
src = coreOnlySrc;
pname = "traverse-core-tests";
cargoArtifacts = coreOnlyCargoArtifacts;
cargoTestExtraArgs = "--package traverse-core";
cargoTestCommand = "cargo test --release --package traverse-core";
# Override check phase to remove --locked flag
checkPhase = ''
runHook preCheck
cargo test --release --package traverse-core
runHook postCheck
'';
doCheck = true;
});
# Valence tests (with core dependencies)
traverse-valence-tests = craneLib.cargoTest (commonArgs // {
src = coreSrc;
pname = "traverse-valence-tests";
cargoArtifacts = coreCargoArtifacts;
cargoTestExtraArgs = "--no-default-features --features std,controller,circuit --package traverse-valence";
cargoTestCommand = "cargo test --release --no-default-features --features std,controller,circuit --package traverse-valence";
# Override check phase to remove --locked flag
checkPhase = ''
runHook preCheck
cargo test --release --no-default-features --features std,controller,circuit --package traverse-valence
runHook postCheck
'';
doCheck = true;
});
# Ethereum ecosystem tests (lib tests only)
traverse-ethereum-tests = craneLib.cargoTest (commonArgs // {
src = ethereumSrc;
pname = "traverse-ethereum-tests";
cargoArtifacts = ethereumCargoArtifacts;
cargoTestExtraArgs = "--no-default-features --features ethereum,std --package traverse-ethereum --lib";
cargoTestCommand = "cargo test --release --no-default-features --features ethereum,std --package traverse-ethereum --lib";
# Override check phase to remove --locked flag
checkPhase = ''
runHook preCheck
cargo test --release --no-default-features --features ethereum,std --package traverse-ethereum --lib
runHook postCheck
'';
doCheck = true;
});
# Solana ecosystem tests (fallback implementation, lib tests only)
traverse-solana-tests = craneLib.cargoTest (commonArgs // {
src = solanaSrc;
pname = "traverse-solana-tests";
cargoArtifacts = solanaCargoArtifacts;
cargoTestExtraArgs = "--no-default-features --features std --package traverse-solana --lib";
cargoTestCommand = "cargo test --release --no-default-features --features std --package traverse-solana --lib";
# Override check phase to remove --locked flag
checkPhase = ''
runHook preCheck
cargo test --release --no-default-features --features std --package traverse-solana --lib
runHook postCheck
'';
doCheck = true;
});
# Cosmos ecosystem tests (fallback implementation, lib tests only)
traverse-cosmos-tests = craneLib.cargoTest (commonArgs // {
src = cosmosSrc;
pname = "traverse-cosmos-tests";
cargoArtifacts = cosmosCargoArtifacts;
cargoTestExtraArgs = "--no-default-features --features cosmos,std --package traverse-cosmos --lib";
cargoTestCommand = "cargo test --release --no-default-features --features cosmos,std --package traverse-cosmos --lib";
# Override check phase to remove --locked flag
checkPhase = ''
runHook preCheck
cargo test --release --no-default-features --features cosmos,std --package traverse-cosmos --lib
runHook postCheck
'';
doCheck = true;
});
# Valence tests (disabled - complex struct initialization issues)
# traverse-valence-tests = craneLib.cargoTest (commonArgs // {
# src = coreSrc;
# pname = "traverse-valence-tests";
# cargoArtifacts = coreCargoArtifacts;
# cargoTestExtraArgs = "--no-default-features --features std,controller,circuit --package traverse-valence";
# });
};
# Ecosystem-specific development shells
devShells = {
# Default shell (core development)
default = pkgs.mkShell {
buildInputs = commonBuildInputs ++ (with pkgs; [
rustToolchain
cargo-edit
cargo-watch
cargo-nextest
just
jq
nodejs
direnv
nix-direnv
]);
shellHook = ''
echo "Traverse development environment"
echo "================================"
echo ""
echo "Rust toolchain:"
echo " cargo --version # $(cargo --version)"
echo " rustc --version # $(rustc --version)"
echo ""
echo "Available isolated builds:"
echo " nix build .#traverse-core # Core implementation"
echo " nix build .#traverse-ethereum # Ethereum ecosystem"
echo " nix build .#traverse-ethereum-cli # Ethereum CLI"
echo " nix build .#traverse-solana # Solana ecosystem"
echo " nix build .#traverse-solana-cli # Solana CLI"
echo " nix build .#traverse-cosmos # Cosmos ecosystem"
echo " nix build .#traverse-cosmos-cli # Cosmos CLI"
echo ""
echo "Isolated ecosystem tests:"
echo " nix build .#traverse-core-tests # Core tests (no dependencies)"
echo " nix build .#traverse-valence-tests # Valence tests (with alloy support)"
echo " nix build .#traverse-ethereum-tests # Ethereum ecosystem tests"
echo " nix build .#traverse-solana-tests # Solana ecosystem tests"
echo " nix build .#traverse-cosmos-tests # Cosmos ecosystem tests"
echo ""
echo "Run all ecosystem tests:"
echo " nix flake check # Run all isolated tests"
echo ""
echo "Ecosystem-specific shells:"
echo " nix develop .#ethereum # Ethereum development"
echo " nix develop .#solana # Solana development"
echo " nix develop .#cosmos # Cosmos development"
echo ""
'';
};
# Ethereum development shell
ethereum = pkgs.mkShell {
buildInputs = commonBuildInputs ++ (with pkgs; [
rustToolchain
cargo-edit
cargo-watch
cargo-nextest
just
jq
nodejs
git # Ensure git is available for cargo
]);
# SSL certificate configuration for development
SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
CARGO_NET_GIT_FETCH_WITH_CLI = "true";
GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
shellHook = ''
echo "Traverse Ethereum Development Environment"
echo "========================================="
echo ""
echo "Build commands:"
echo " cargo build --no-default-features --features ethereum"
echo " nix build .#traverse-ethereum-cli"
echo ""
echo "Test commands:"
echo " nix build .#traverse-ethereum-tests # Isolated tests"
echo " cargo test --no-default-features --features ethereum # (may fail due to workspace conflicts)"
echo ""
'';
};
# Solana development shell
solana = pkgs.mkShell {
buildInputs = commonBuildInputs ++ (with pkgs; [
rustToolchain
cargo-edit
cargo-watch
cargo-nextest
just
jq
nodejs
git # Ensure git is available for cargo
]) ++ (builtins.attrValues solanaTools);
# SSL certificate configuration for development
SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
CARGO_NET_GIT_FETCH_WITH_CLI = "true";
GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
shellHook = ''
echo "Traverse Solana Development Environment"
echo "======================================="
echo ""
${if (solanaTools != {}) then ''
echo "Solana development tools:"
${if (solanaTools ? solana-cli) then ''echo " solana --version # Solana CLI"'' else ""}
${if (solanaTools ? anchor-cli) then ''echo " anchor --version # Anchor framework CLI"'' else ""}
${if (solanaTools ? solana-test-validator) then ''echo " solana-test-validator # Local Solana validator"'' else ""}
echo ""
'' else ''
echo "Note: Solana tools not available (check zero.nix integration)"
echo ""
''}
echo "Build commands:"
echo " cargo build --no-default-features --features solana"
echo " nix build .#traverse-solana-cli"
echo ""
echo "Test commands:"
echo " nix build .#traverse-solana-tests # Isolated tests"
echo " cargo test --no-default-features --features solana # (may fail due to workspace conflicts)"
echo ""
# Set environment variables for Solana development
export SOLANA_URL="http://127.0.0.1:8899" # Local test validator
export ANCHOR_PROVIDER_URL="$SOLANA_URL"
export SOLANA_CLI_CONFIG="$HOME/.config/solana/cli/config.yml"
'';
};
# Cosmos development shell
cosmos = pkgs.mkShell {
buildInputs = commonBuildInputs ++ (with pkgs; [
rustToolchain
cargo-edit
cargo-watch
cargo-nextest
just
jq
nodejs
git # Ensure git is available for cargo
]);
# SSL certificate configuration for development
SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
CARGO_NET_GIT_FETCH_WITH_CLI = "true";
GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
shellHook = ''
echo "Traverse Cosmos Development Environment"
echo "======================================="
echo ""
echo "Build commands:"
echo " cargo build --no-default-features --features cosmos"
echo " nix build .#traverse-cosmos-cli"
echo ""
echo "Test commands:"
echo " nix build .#traverse-cosmos-tests # Isolated tests"
echo " cargo test --no-default-features --features cosmos # (may fail due to workspace conflicts)"
echo ""
'';
};
};
}
);
}