tauri/.changes/codegen-capabilities-attribute.md
Lucas Fernandes Nogueira 8d16a80d2f
feat(codegen): allow defining additional capabilities, closes #8798 (#8802)
* refactor(core): capabilities must be referenced on the Tauri config file

* add all capabilities by default

* feat(codegen): allow defining additional capabilities, closes #8798

* undo example

* lint

* move add_capability to runtime authority

* add change files

* go through code review

* fix tests

* remove tokens option
2024-02-19 11:13:36 -03:00

401 B

tauri-macros tauri-codegen
patch:enhance patch:enhance

The generate_context proc macro now accepts a capabilities attribute where the value is an array of file paths that can be conditionally compiled. These capabilities are added to the application along the capabilities defined in the Tauri configuration file.