Support non-static UDS client connection paths
- Dominant language
- Rust
- Stars
- 12.5k
- Forks
- 1.3k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 24
Description
## Feature Request
Support non-static UDS client connection paths
### Motivation
Currently the UDS client example is using a static path, I believe because of the ownership requirements of the service function closure:
https://github.com/hyperium/tonic/blob/c30cb783b9e5eaa4ea05003d9cacac733d135c58/examples/src/uds/client.rs#L16-L28
It would be great if `tonic` and its `hyperium` dependencies, as needed, took ownership of the specified path to avoid the user needing to vend a `&'static str`.
### Related
- Captured path perhaps eventually should be supported through a URI that supports file URLs: https://github.com/hyperium/http/issues/323
- Proposal to update UDS client example with a workaround: #1611
Contributor guide
Assessment
This issue has not been assessed yet.