File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33This [ tauri] ( https://v2.tauri.app/ ) plugin is supposed to make it easy to use Python as backend code.
44It uses [ PyO3] ( https://pyo3.rs ) to call python from rust.
55The plugin reads by default the file ` src-tauri/src-python/main.py ` during
6- compile time and runs it during startup. It then can call functions that were embedded in this python code.
6+ startup and runs it immediately. Python functions are then registered during initialization
7+ and can get called during application workflow.
78
89Python code can be registered and called from javascript without the
910requirement to touch rust code at all.
1011You can still use rust to register all python functions if you have any security concerns,
1112for example when using inputs from other network interfaces.
13+ The first call of a function will prevent registering further python functions.
1214
1315
1416You might use this plugin to create simple prototype applications
You can’t perform that action at this time.
0 commit comments