Currently, packages/fers-ui/src-tauri/build.rs maintains a hardcoded list of static libraries (vcpkg_libs) to link against.
This approach is fragile: if we update vcpkg.json or change our C++ dependencies, we have to remember to manually update this list in the Rust build script.
To create a single source of truth for our dependencies, we should:
- Update the main CMake build to generate a file (e.g.,
vcpkg_links.txt) that contains the full paths to all required static libraries.
- Update
build.rs to read this generated file instead of relying on the hardcoded array.
Currently,
packages/fers-ui/src-tauri/build.rsmaintains a hardcoded list of static libraries (vcpkg_libs) to link against.This approach is fragile: if we update
vcpkg.jsonor change our C++ dependencies, we have to remember to manually update this list in the Rust build script.To create a single source of truth for our dependencies, we should:
vcpkg_links.txt) that contains the full paths to all required static libraries.build.rsto read this generated file instead of relying on the hardcoded array.