2.5 KiB
2.5 KiB
\nfeature 'edition2024' is required\nthis Cargo does not support nightly features, but if you\nswitch to nightly channel you can add\n`cargo-features = ["edition2024"]` to enable this feature\n\n\n### Root Cause\n\nDependency chain:\n\n\ncontrol-center → surrealdb 2.3.10 → surrealdb-core 2.3.10 → async-graphql 7.0.17\n\n\nThe async-graphql-value crate v7.0.17 requires Rust edition 2024, which is not yet stable in Rust 1.82.\nEdition 2024 is currently only available in Rust nightly builds.\n\n### Resolution\n\nUpdated Dockerfiles to use Rust nightly (2025-10-07):\n\nBoth orchestrator/Dockerfile and control-center/Dockerfile now use:\n\n\nFROM rustlang/rust:nightly-bookworm AS builder\n\n\nThis provides edition2024 support required by the surrealdb dependency chain.\n\n### Production Considerations\n\nRust Nightly Stability:\n\n- Nightly builds are generally stable for compilation\n- The compiled binaries are production-ready\n- Runtime behavior is not affected by nightly vs stable compilation\n- Consider pinning to a specific nightly date for reproducible builds\n\nAlternative: Use native deployment with stable Rust if nightly is a concern:\n\n\ncd provisioning/platform/scripts\nnu run-native.nu build\nnu run-native.nu start-all --background\n\n\n### Timeline\n\n- Rust 1.85 (estimated Feb 2025): Expected to stabilize edition 2024\n- SurrealDB 3.x: May drop async-graphql dependency\n\n### Tracking\n\n- Rust Edition 2024 RFC: https://github.com/rust-lang/rfcs/pull/3501\n- SurrealDB Issue: https://github.com/surrealdb/surrealdb/issues\n- async-graphql Issue: https://github.com/async-graphql/async-graphql/issues\n\n### Related Files\n\n- provisioning/platform/control-center/Dockerfile\n- provisioning/platform/Cargo.toml (workspace dependencies)\n- provisioning/platform/control-center/Cargo.toml\n\n---\n\n## RocksDB Build Takes Long Time\n\nStatus: Known Limitation\nSeverity: Low\nAffects: All builds\n\n### Issue\n\nRocksDB compilation takes 30-60 seconds during builds.\n\n### Workaround\n\nUse cached Docker layers or native builds with incremental compilation.\n\n---\n\nLast Updated: 2025-10-07