Skip to content

Commit 3aca38c

Browse files
committed
Add license header to .proto file and refine MSRV approach
- Add Apache 2.0 license header to set_envoy_filter_state.proto - Remove rust-version field from tcp_rerouting example Cargo.toml - Keep explicit dependency pins for proc-macro2 and quote to ensure Rust 1.65 compatibility This approach follows the pattern of other examples (no rust-version) while ensuring MSRV compatibility through explicit dependency pinning rather than relying on rust-version, which doesn't prevent Cargo from selecting incompatible dependency versions. Signed-off-by: Christof Gerber <christof.gerber1@gmail.com>
1 parent 4e06125 commit 3aca38c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

examples/tcp_rerouting/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ authors = ["Proxy-Wasm contributors"]
66
description = "Proxy-Wasm plugin example: TCP Rerouting based on source IP"
77
license = "Apache-2.0"
88
edition = "2021"
9-
rust-version = "1.65"
109

1110
[lib]
1211
crate-type = ["cdylib"]
@@ -18,3 +17,6 @@ prost = "0.12"
1817

1918
[build-dependencies]
2019
prost-build = "0.12"
20+
# Pin proc-macro2 and quote to versions compatible with Rust 1.65 (MSRV)
21+
proc-macro2 = "=1.0.92"
22+
quote = "=1.0.37"

examples/tcp_rerouting/src/set_envoy_filter_state.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
syntax = "proto3";
216

317
package envoy.source.extensions.common.wasm;

0 commit comments

Comments
 (0)