Import global constants from Python in a Rust file #2812
Unanswered
JackAshwell11
asked this question in
Questions
Replies: 1 comment
-
You'd import the file (assuming it's accessible as a module) using To get to a more concrete type, you can either |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So if I have a Python file
const.py
(assuming this is a placeholder for more complicated data types):How can I access and use these variables in a Rust file?
Beta Was this translation helpful? Give feedback.
All reactions