rust: Detect debug builds using PROFILE env var in build script
rust: Detect debug builds using PROFILE env var in build script

Fixes #757

tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter