HomePhabricator
Diffusion Comm d9300c1b7ff8

[native_rust_library] Write state version as build-time constant

Description

[native_rust_library] Write state version as build-time constant

Summary:
We're going to pass state version in gRPC metadata - this updates native_rust_library build.rs to scrap it
from native/redux/persist.js.
Some context in ENG-8279.

Test Plan:
cd native_rust_library && cargo build --verbose. In IDE, added use crate::STATE_VERSION then used my IDE
to jump to definition. Found generated value matching the value from persist.js.

Reviewers: varun, marcin

Reviewed By: marcin

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D12275

Details

Provenance
bartekAuthored on Jun 3 2024, 3:36 AM
Reviewer
marcin
Differential Revision
D12275: [native_rust_library] Write state version as build-time constant
Parents
rCOMM47d699f758b6: Deploy identity 0.22-staging to staging
Branches
Unknown
Tags
Unknown