Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Implement support for binding attributes on parameters. #465

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

peterhuene
Copy link
Owner

This PR implements support for binding attributes on parameters.

For example:

pub fn foo(#[binding(route = "foo") req: HttpRequest) {
}

However, both rustfmt and rls (plus GitHub's source parser) do not yet
properly handle attributes on parameters.

The samples and documentation will be updated to specify the attributes on the
parameters themselves once there is broader support of the feature.

Closes #457.

This commit implements support for binding attributes on parameters.

For example:

```rust
pub fn foo(#[binding(route = "foo") req: HttpRequest) {
}
```

However, both `rustfmt` and `rls` (plus GitHub's source parser) do not yet
properly handle attributes on parameters.

The samples and documentation will be updated to specify the attributes on the
parameters themselves once there is broader support of the feature.

Closes #457.
@peterhuene peterhuene added this to the 0.12.0 milestone Nov 14, 2019
@cla-bot cla-bot bot added the cla-signed The CLA has been signed by the contributor. label Nov 14, 2019
@peterhuene peterhuene merged commit a515f94 into dev Nov 14, 2019
@peterhuene peterhuene deleted the binding-attributes-on-parameters branch November 14, 2019 04:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed The CLA has been signed by the contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant