Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable dependent crates to import protos #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oldgalileo
Copy link

@oldgalileo oldgalileo commented Oct 22, 2024

Enables dependent crates to get the fully qualified path to the 'protos/' directory at build time.

By setting a 'links' attribute on our Cargo.toml package, Cargo makes 'println!("cargo:key=val")' visible to dependent crates at build time, using an environment variable with the format:

DEP_<LINKS_VALUE>_<KEY>=<val>

We use this to set the DEP_ORB_RELAY_MESSAGES_PROTO_PATH to the path of the 'protos' directory

Enables dependent crates to get the fully qualified path to the 'protos/'
directory at build time.

By setting a 'links' attribute on our Cargo.toml package, Cargo makes
'println!("cargo:key=val")' visible to dependent crates at build time,
using an environment variable with the format:

  DEP_<LINKS_VALUE>_<KEY>=<val>

We use this to set the DEP_ORB_RELAY_MESSAGES_PROTO_PATH to the path of
the 'protos' directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant