~nickbp/kapiti

ref: bench-baseline kapiti/update-fbs.sh -rwxr-xr-x 711 bytes
d94f181cNick Parker Backport current benchmark to older code 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# Updates the flatbuffer specs in fbs/* and generated code in src/fbs/*.
# This is done as an offline process (separate from the main build) to avoid problems with tooling, such as:
# - Cargo: Requires that generated artifacts go into OUT_DIR
# - rust-analyzer and RLS: Neither follows OUT_DIR at all
# - rust-analyzer: Gets confused by code mtimes getting updated during rebuild/analysis, leading to infinite rebuilds etc
# So we keep until these get fixed we just keep the generated artifacts in source control, and update them when needed with this script.

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $SCRIPT_DIR

cargo run --example update_fbs -- --fetch