You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Full playground environment: `docker compose -f playground/docker-compose.fork.yml up -d`
109
+
- For forked network tests, set environment variables: `FORK_MAINNET_URL` and `FORK_GNOSIS_URL`
110
+
- Reset playground: `docker-compose -f playground/docker-compose.fork.yml down --remove-orphans --volumes`
80
111
81
112
## Directory Structure
82
113
@@ -87,6 +118,30 @@ playground/ # Local dev environment
87
118
configs/ # Configuration files
88
119
```
89
120
121
+
## Workspace Configuration
122
+
123
+
- Rust Edition 2024
124
+
- Uses workspace dependencies for consistency
125
+
- Tokio-console support: **Only available in playground environment** (set `TOKIO_CONSOLE=true` to activate when running in playground)
126
+
- Production builds do **not** include tokio-console overhead
127
+
- Runtime log filter changes via UNIX socket at `/tmp/log_filter_override_<program_name>_<pid>.sock`
128
+
- Memory allocator: Uses jemalloc by default with built-in heap profiling support (enable at runtime via MALLOC_CONF environment variable). Can optionally use mimalloc via `--features mimalloc-allocator`
129
+
130
+
## Playground Environment
131
+
132
+
- Access full local development stack with CoW Swap UI at http://localhost:8000
133
+
- CoW Explorer available at http://localhost:8001
134
+
- Orderbook API at http://localhost:8080
135
+
- Database admin (Adminer) at http://localhost:8082
136
+
- Uses test mnemonic: "test test test test test test test test test test test junk"
137
+
- First 10 accounts have 10000 ETH balance by default
138
+
139
+
## Development Notes
140
+
141
+
- Binaries support `--help` for comprehensive command documentation
142
+
- OpenAPI documentation available for orderbook, driver, and solver APIs
143
+
- Performance profiling: Only available in playground (requires tokio-console feature + tokio_unstable cfg)
144
+
90
145
# General Coding Instructions
91
146
92
147
If there is a test you can run then run it or `cargo check` or `cargo build`; run it after you have made changes.
0 commit comments