martinohmann / hcl-rs

HCL parsing and encoding libraries for rust with serde support
Apache License 2.0
119 stars 14 forks source link

Namespaced functions #335

Closed MicaiahReid closed 2 months ago

MicaiahReid commented 3 months ago

The official hcl repo now supports namespaced functions (as of this PR). Is there any plan to support that here? This is what I'd like to be able to do:

block "foo" "bar" { 
  foobar = namespace::some_function() 
}
martinohmann commented 3 months ago

Thanks for the hint. I also recently stumbled across this but forgot to create an issue for that myself. I want to support this, especially now that this also landed in terraform. I'm going to read up on the specifics in the next few days and will try to implement it.

MicaiahReid commented 3 months ago

Beautiful, thanks @martinohmann!

martinohmann commented 2 months ago

@MicaiahReid I just released support for namespaced functions in hcl-edit 0.8.0 and hcl-rs 0.17.0. This required some breaking changes, see the linked PR for more information.