diff --git a/examples/equivalent.rs b/examples/equivalent.rs index c8e107b5..31cc164f 100644 --- a/examples/equivalent.rs +++ b/examples/equivalent.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/event_listener.rs b/examples/event_listener.rs index 91feefbb..fb8c26ba 100644 --- a/examples/event_listener.rs +++ b/examples/event_listener.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/export_metrics_prometheus_hyper.rs b/examples/export_metrics_prometheus_hyper.rs index b5770301..402ffbd7 100644 --- a/examples/export_metrics_prometheus_hyper.rs +++ b/examples/export_metrics_prometheus_hyper.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/hybrid.rs b/examples/hybrid.rs index 898cd31d..e2d2bd11 100644 --- a/examples/hybrid.rs +++ b/examples/hybrid.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/hybrid_full.rs b/examples/hybrid_full.rs index d02f2b8e..6752d6f7 100644 --- a/examples/hybrid_full.rs +++ b/examples/hybrid_full.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/memory.rs b/examples/memory.rs index 389c1ae2..12d8dc06 100644 --- a/examples/memory.rs +++ b/examples/memory.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/tail_based_tracing.rs b/examples/tail_based_tracing.rs index 4c20e91f..6e3bb30f 100644 --- a/examples/tail_based_tracing.rs +++ b/examples/tail_based_tracing.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-bench/src/analyze.rs b/foyer-bench/src/analyze.rs index 50ecc7a6..f32d76eb 100644 --- a/foyer-bench/src/analyze.rs +++ b/foyer-bench/src/analyze.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-bench/src/exporter.rs b/foyer-bench/src/exporter.rs index 3008a3bc..64881bbf 100644 --- a/foyer-bench/src/exporter.rs +++ b/foyer-bench/src/exporter.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-bench/src/main.rs b/foyer-bench/src/main.rs index 0ed18eba..cc6c97a7 100644 --- a/foyer-bench/src/main.rs +++ b/foyer-bench/src/main.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-bench/src/rate.rs b/foyer-bench/src/rate.rs index 7cfe284e..e16e0e1a 100644 --- a/foyer-bench/src/rate.rs +++ b/foyer-bench/src/rate.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-bench/src/text.rs b/foyer-bench/src/text.rs index 1b53a2e0..d0248bdd 100644 --- a/foyer-bench/src/text.rs +++ b/foyer-bench/src/text.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-cli/src/args/error.rs b/foyer-cli/src/args/error.rs index 09bd03e3..54e53e34 100644 --- a/foyer-cli/src/args/error.rs +++ b/foyer-cli/src/args/error.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-cli/src/args/fio.rs b/foyer-cli/src/args/fio.rs index 2a687ea8..844ef9bd 100644 --- a/foyer-cli/src/args/fio.rs +++ b/foyer-cli/src/args/fio.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-cli/src/args/mod.rs b/foyer-cli/src/args/mod.rs index bb8e3862..e251a4de 100644 --- a/foyer-cli/src/args/mod.rs +++ b/foyer-cli/src/args/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-cli/src/main.rs b/foyer-cli/src/main.rs index d0a8a71b..8971c6fa 100644 --- a/foyer-cli/src/main.rs +++ b/foyer-cli/src/main.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/assert.rs b/foyer-common/src/assert.rs index 8e2a744f..0dcb2642 100644 --- a/foyer-common/src/assert.rs +++ b/foyer-common/src/assert.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/asyncify.rs b/foyer-common/src/asyncify.rs index 8b62f302..256c2255 100644 --- a/foyer-common/src/asyncify.rs +++ b/foyer-common/src/asyncify.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/bits.rs b/foyer-common/src/bits.rs index f8ed230e..512572f9 100644 --- a/foyer-common/src/bits.rs +++ b/foyer-common/src/bits.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/buf.rs b/foyer-common/src/buf.rs index 7e62228a..af497b7c 100644 --- a/foyer-common/src/buf.rs +++ b/foyer-common/src/buf.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/code.rs b/foyer-common/src/code.rs index fe2d34bf..d65f96c6 100644 --- a/foyer-common/src/code.rs +++ b/foyer-common/src/code.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/countdown.rs b/foyer-common/src/countdown.rs index c12b80f9..a1de3d6c 100644 --- a/foyer-common/src/countdown.rs +++ b/foyer-common/src/countdown.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/event.rs b/foyer-common/src/event.rs index 03d2c2ca..d57df1dd 100644 --- a/foyer-common/src/event.rs +++ b/foyer-common/src/event.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/future.rs b/foyer-common/src/future.rs index 498fa853..05231b80 100644 --- a/foyer-common/src/future.rs +++ b/foyer-common/src/future.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/hasher.rs b/foyer-common/src/hasher.rs index d11ae1c3..a572c41b 100644 --- a/foyer-common/src/hasher.rs +++ b/foyer-common/src/hasher.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/lib.rs b/foyer-common/src/lib.rs index 49565a6f..c3d6eefc 100644 --- a/foyer-common/src/lib.rs +++ b/foyer-common/src/lib.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/metrics/mod.rs b/foyer-common/src/metrics/mod.rs index eaff575f..dcfcbc7a 100644 --- a/foyer-common/src/metrics/mod.rs +++ b/foyer-common/src/metrics/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/metrics/model.rs b/foyer-common/src/metrics/model.rs index 24aa98c3..1f48cca5 100644 --- a/foyer-common/src/metrics/model.rs +++ b/foyer-common/src/metrics/model.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/metrics/registry/mod.rs b/foyer-common/src/metrics/registry/mod.rs index 4a1194a2..6b5243f0 100644 --- a/foyer-common/src/metrics/registry/mod.rs +++ b/foyer-common/src/metrics/registry/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/metrics/registry/noop.rs b/foyer-common/src/metrics/registry/noop.rs index f9b7a0c7..e2f52a94 100644 --- a/foyer-common/src/metrics/registry/noop.rs +++ b/foyer-common/src/metrics/registry/noop.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/metrics/registry/opentelemetry_0_26.rs b/foyer-common/src/metrics/registry/opentelemetry_0_26.rs index f2a1281b..76c404a2 100644 --- a/foyer-common/src/metrics/registry/opentelemetry_0_26.rs +++ b/foyer-common/src/metrics/registry/opentelemetry_0_26.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/metrics/registry/opentelemetry_0_27.rs b/foyer-common/src/metrics/registry/opentelemetry_0_27.rs index ed427f0b..de905b2b 100644 --- a/foyer-common/src/metrics/registry/opentelemetry_0_27.rs +++ b/foyer-common/src/metrics/registry/opentelemetry_0_27.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/metrics/registry/prometheus.rs b/foyer-common/src/metrics/registry/prometheus.rs index fa04e911..892c938c 100644 --- a/foyer-common/src/metrics/registry/prometheus.rs +++ b/foyer-common/src/metrics/registry/prometheus.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/metrics/registry/prometheus_client_0_22.rs b/foyer-common/src/metrics/registry/prometheus_client_0_22.rs index 8b4b974b..f8f41390 100644 --- a/foyer-common/src/metrics/registry/prometheus_client_0_22.rs +++ b/foyer-common/src/metrics/registry/prometheus_client_0_22.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/option.rs b/foyer-common/src/option.rs index a1ea2bcd..3e84a15f 100644 --- a/foyer-common/src/option.rs +++ b/foyer-common/src/option.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/range.rs b/foyer-common/src/range.rs index 0fae4d77..c3dc1c58 100644 --- a/foyer-common/src/range.rs +++ b/foyer-common/src/range.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/rate.rs b/foyer-common/src/rate.rs index 881697af..5c4759a4 100644 --- a/foyer-common/src/rate.rs +++ b/foyer-common/src/rate.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/rated_ticket.rs b/foyer-common/src/rated_ticket.rs index 026cdf2d..4d5193c7 100644 --- a/foyer-common/src/rated_ticket.rs +++ b/foyer-common/src/rated_ticket.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/runtime.rs b/foyer-common/src/runtime.rs index 62806a2a..fab0d6e4 100644 --- a/foyer-common/src/runtime.rs +++ b/foyer-common/src/runtime.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/scope.rs b/foyer-common/src/scope.rs index da2cb94e..a8c50543 100644 --- a/foyer-common/src/scope.rs +++ b/foyer-common/src/scope.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/tracing.rs b/foyer-common/src/tracing.rs index 1c3e9f20..ed261af3 100644 --- a/foyer-common/src/tracing.rs +++ b/foyer-common/src/tracing.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-common/src/wait_group.rs b/foyer-common/src/wait_group.rs index ae4f71bd..76003303 100644 --- a/foyer-common/src/wait_group.rs +++ b/foyer-common/src/wait_group.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/benches/bench_dynamic_dispatch.rs b/foyer-memory/benches/bench_dynamic_dispatch.rs index 3594effa..60346bf2 100644 --- a/foyer-memory/benches/bench_dynamic_dispatch.rs +++ b/foyer-memory/benches/bench_dynamic_dispatch.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/benches/bench_hit_ratio.rs b/foyer-memory/benches/bench_hit_ratio.rs index 5afafdad..c0eb5465 100644 --- a/foyer-memory/benches/bench_hit_ratio.rs +++ b/foyer-memory/benches/bench_hit_ratio.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/cache.rs b/foyer-memory/src/cache.rs index 59be8408..2f6aad18 100644 --- a/foyer-memory/src/cache.rs +++ b/foyer-memory/src/cache.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/error.rs b/foyer-memory/src/error.rs index 59b74ac3..d42772d5 100644 --- a/foyer-memory/src/error.rs +++ b/foyer-memory/src/error.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/eviction/fifo.rs b/foyer-memory/src/eviction/fifo.rs index 07baeceb..beaf05bd 100644 --- a/foyer-memory/src/eviction/fifo.rs +++ b/foyer-memory/src/eviction/fifo.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/eviction/lfu.rs b/foyer-memory/src/eviction/lfu.rs index 222db9da..f61ae22e 100644 --- a/foyer-memory/src/eviction/lfu.rs +++ b/foyer-memory/src/eviction/lfu.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/eviction/lru.rs b/foyer-memory/src/eviction/lru.rs index c49fa206..0cbefe86 100644 --- a/foyer-memory/src/eviction/lru.rs +++ b/foyer-memory/src/eviction/lru.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/eviction/mod.rs b/foyer-memory/src/eviction/mod.rs index 66ac4346..059f66a1 100644 --- a/foyer-memory/src/eviction/mod.rs +++ b/foyer-memory/src/eviction/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/eviction/s3fifo.rs b/foyer-memory/src/eviction/s3fifo.rs index cf210aac..0dca14ef 100644 --- a/foyer-memory/src/eviction/s3fifo.rs +++ b/foyer-memory/src/eviction/s3fifo.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/eviction/test_utils.rs b/foyer-memory/src/eviction/test_utils.rs index dfc18c4e..a50aae28 100644 --- a/foyer-memory/src/eviction/test_utils.rs +++ b/foyer-memory/src/eviction/test_utils.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/indexer/hash_table.rs b/foyer-memory/src/indexer/hash_table.rs index f9611750..3bed00b0 100644 --- a/foyer-memory/src/indexer/hash_table.rs +++ b/foyer-memory/src/indexer/hash_table.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/indexer/mod.rs b/foyer-memory/src/indexer/mod.rs index 7ff78e4a..4d98ca61 100644 --- a/foyer-memory/src/indexer/mod.rs +++ b/foyer-memory/src/indexer/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/indexer/sentry.rs b/foyer-memory/src/indexer/sentry.rs index 5c91afd2..a054d4f3 100644 --- a/foyer-memory/src/indexer/sentry.rs +++ b/foyer-memory/src/indexer/sentry.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/lib.rs b/foyer-memory/src/lib.rs index 6ca1fdf5..23e5e676 100644 --- a/foyer-memory/src/lib.rs +++ b/foyer-memory/src/lib.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/prelude.rs b/foyer-memory/src/prelude.rs index d33ce8c5..e0e6ec53 100644 --- a/foyer-memory/src/prelude.rs +++ b/foyer-memory/src/prelude.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/raw.rs b/foyer-memory/src/raw.rs index 76a9b64b..52d24fa9 100644 --- a/foyer-memory/src/raw.rs +++ b/foyer-memory/src/raw.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-memory/src/record.rs b/foyer-memory/src/record.rs index ef30c45c..087a5487 100644 --- a/foyer-memory/src/record.rs +++ b/foyer-memory/src/record.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/compress.rs b/foyer-storage/src/compress.rs index 04a43b0b..c419343b 100644 --- a/foyer-storage/src/compress.rs +++ b/foyer-storage/src/compress.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/device/allocator.rs b/foyer-storage/src/device/allocator.rs index 52089125..814c2c32 100644 --- a/foyer-storage/src/device/allocator.rs +++ b/foyer-storage/src/device/allocator.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/device/bytes.rs b/foyer-storage/src/device/bytes.rs index 6bc6c43b..af684a1a 100644 --- a/foyer-storage/src/device/bytes.rs +++ b/foyer-storage/src/device/bytes.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/device/direct_file.rs b/foyer-storage/src/device/direct_file.rs index 88bba196..f39e25d8 100644 --- a/foyer-storage/src/device/direct_file.rs +++ b/foyer-storage/src/device/direct_file.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/device/direct_fs.rs b/foyer-storage/src/device/direct_fs.rs index 30310a06..8bb2a3ea 100644 --- a/foyer-storage/src/device/direct_fs.rs +++ b/foyer-storage/src/device/direct_fs.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/device/mod.rs b/foyer-storage/src/device/mod.rs index 15127518..8568b7c3 100644 --- a/foyer-storage/src/device/mod.rs +++ b/foyer-storage/src/device/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/device/monitor.rs b/foyer-storage/src/device/monitor.rs index bfef7774..838110b2 100644 --- a/foyer-storage/src/device/monitor.rs +++ b/foyer-storage/src/device/monitor.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/engine.rs b/foyer-storage/src/engine.rs index fc1a40bf..fed4eabf 100644 --- a/foyer-storage/src/engine.rs +++ b/foyer-storage/src/engine.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/error.rs b/foyer-storage/src/error.rs index 0ef2eb3c..6d769993 100644 --- a/foyer-storage/src/error.rs +++ b/foyer-storage/src/error.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/io_buffer_pool.rs b/foyer-storage/src/io_buffer_pool.rs index d0796fa7..850fa781 100644 --- a/foyer-storage/src/io_buffer_pool.rs +++ b/foyer-storage/src/io_buffer_pool.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/large/batch.rs b/foyer-storage/src/large/batch.rs index badf0890..accff267 100644 --- a/foyer-storage/src/large/batch.rs +++ b/foyer-storage/src/large/batch.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/large/flusher.rs b/foyer-storage/src/large/flusher.rs index e562b85f..a411276c 100644 --- a/foyer-storage/src/large/flusher.rs +++ b/foyer-storage/src/large/flusher.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/large/generic.rs b/foyer-storage/src/large/generic.rs index 75ae6269..49f55fe1 100644 --- a/foyer-storage/src/large/generic.rs +++ b/foyer-storage/src/large/generic.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/large/indexer.rs b/foyer-storage/src/large/indexer.rs index db32810d..69342416 100644 --- a/foyer-storage/src/large/indexer.rs +++ b/foyer-storage/src/large/indexer.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/large/mod.rs b/foyer-storage/src/large/mod.rs index 83d314c6..4cd96fa3 100644 --- a/foyer-storage/src/large/mod.rs +++ b/foyer-storage/src/large/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/large/reclaimer.rs b/foyer-storage/src/large/reclaimer.rs index 62be4b19..8f42e0e1 100644 --- a/foyer-storage/src/large/reclaimer.rs +++ b/foyer-storage/src/large/reclaimer.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/large/recover.rs b/foyer-storage/src/large/recover.rs index 08df950e..81463c61 100644 --- a/foyer-storage/src/large/recover.rs +++ b/foyer-storage/src/large/recover.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/large/scanner.rs b/foyer-storage/src/large/scanner.rs index de1a7146..d2e09730 100644 --- a/foyer-storage/src/large/scanner.rs +++ b/foyer-storage/src/large/scanner.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/large/serde.rs b/foyer-storage/src/large/serde.rs index 51768dcf..4d8ee2f3 100644 --- a/foyer-storage/src/large/serde.rs +++ b/foyer-storage/src/large/serde.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/large/tombstone.rs b/foyer-storage/src/large/tombstone.rs index 88a1f196..0dc18c56 100644 --- a/foyer-storage/src/large/tombstone.rs +++ b/foyer-storage/src/large/tombstone.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/lib.rs b/foyer-storage/src/lib.rs index 4d853fba..d0185e5e 100644 --- a/foyer-storage/src/lib.rs +++ b/foyer-storage/src/lib.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/picker/mod.rs b/foyer-storage/src/picker/mod.rs index 3e79c491..28f8cdb4 100644 --- a/foyer-storage/src/picker/mod.rs +++ b/foyer-storage/src/picker/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/picker/utils.rs b/foyer-storage/src/picker/utils.rs index 525328c5..edd2ff1d 100644 --- a/foyer-storage/src/picker/utils.rs +++ b/foyer-storage/src/picker/utils.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/prelude.rs b/foyer-storage/src/prelude.rs index 75954c60..b7460d8a 100644 --- a/foyer-storage/src/prelude.rs +++ b/foyer-storage/src/prelude.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/region.rs b/foyer-storage/src/region.rs index 969f409f..4f9b3fd4 100644 --- a/foyer-storage/src/region.rs +++ b/foyer-storage/src/region.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/runtime.rs b/foyer-storage/src/runtime.rs index 4b000e61..dbe1da86 100644 --- a/foyer-storage/src/runtime.rs +++ b/foyer-storage/src/runtime.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/serde.rs b/foyer-storage/src/serde.rs index 3f633f91..10162df8 100644 --- a/foyer-storage/src/serde.rs +++ b/foyer-storage/src/serde.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/small/batch.rs b/foyer-storage/src/small/batch.rs index ce2a99ab..d2f7b30d 100644 --- a/foyer-storage/src/small/batch.rs +++ b/foyer-storage/src/small/batch.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/small/bloom_filter.rs b/foyer-storage/src/small/bloom_filter.rs index f400e451..05a08a13 100644 --- a/foyer-storage/src/small/bloom_filter.rs +++ b/foyer-storage/src/small/bloom_filter.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/small/flusher.rs b/foyer-storage/src/small/flusher.rs index 1aa0aa3c..1b7845f5 100644 --- a/foyer-storage/src/small/flusher.rs +++ b/foyer-storage/src/small/flusher.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/small/generic.rs b/foyer-storage/src/small/generic.rs index ed8ed87d..1286b9cc 100644 --- a/foyer-storage/src/small/generic.rs +++ b/foyer-storage/src/small/generic.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/small/mod.rs b/foyer-storage/src/small/mod.rs index 02862fd0..5d9c4724 100644 --- a/foyer-storage/src/small/mod.rs +++ b/foyer-storage/src/small/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/small/serde.rs b/foyer-storage/src/small/serde.rs index b704946a..f02cf44d 100644 --- a/foyer-storage/src/small/serde.rs +++ b/foyer-storage/src/small/serde.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/small/set.rs b/foyer-storage/src/small/set.rs index d930c870..513dfd72 100644 --- a/foyer-storage/src/small/set.rs +++ b/foyer-storage/src/small/set.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/small/set_cache.rs b/foyer-storage/src/small/set_cache.rs index 89769f00..ffddc9c8 100644 --- a/foyer-storage/src/small/set_cache.rs +++ b/foyer-storage/src/small/set_cache.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/small/set_manager.rs b/foyer-storage/src/small/set_manager.rs index ef42a471..d5e2ecb5 100644 --- a/foyer-storage/src/small/set_manager.rs +++ b/foyer-storage/src/small/set_manager.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/statistics.rs b/foyer-storage/src/statistics.rs index bac5f618..391e7fd1 100644 --- a/foyer-storage/src/statistics.rs +++ b/foyer-storage/src/statistics.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/storage/either.rs b/foyer-storage/src/storage/either.rs index 60f1b1db..83912081 100644 --- a/foyer-storage/src/storage/either.rs +++ b/foyer-storage/src/storage/either.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/storage/mod.rs b/foyer-storage/src/storage/mod.rs index c9861e5e..ab21f861 100644 --- a/foyer-storage/src/storage/mod.rs +++ b/foyer-storage/src/storage/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/storage/noop.rs b/foyer-storage/src/storage/noop.rs index 2930d165..237aa997 100644 --- a/foyer-storage/src/storage/noop.rs +++ b/foyer-storage/src/storage/noop.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/store.rs b/foyer-storage/src/store.rs index affba40b..774ccd61 100644 --- a/foyer-storage/src/store.rs +++ b/foyer-storage/src/store.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/src/test_utils.rs b/foyer-storage/src/test_utils.rs index 11f124d7..4ac10ad6 100644 --- a/foyer-storage/src/test_utils.rs +++ b/foyer-storage/src/test_utils.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer-storage/tests/storage_fuzzy_test.rs b/foyer-storage/tests/storage_fuzzy_test.rs index 905ec331..58d45ee6 100644 --- a/foyer-storage/tests/storage_fuzzy_test.rs +++ b/foyer-storage/tests/storage_fuzzy_test.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer/src/hybrid/builder.rs b/foyer/src/hybrid/builder.rs index dee82046..7ea2adc6 100644 --- a/foyer/src/hybrid/builder.rs +++ b/foyer/src/hybrid/builder.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer/src/hybrid/cache.rs b/foyer/src/hybrid/cache.rs index adf72ff2..0458752a 100644 --- a/foyer/src/hybrid/cache.rs +++ b/foyer/src/hybrid/cache.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer/src/hybrid/mod.rs b/foyer/src/hybrid/mod.rs index 08d4ed07..9037e545 100644 --- a/foyer/src/hybrid/mod.rs +++ b/foyer/src/hybrid/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer/src/hybrid/writer.rs b/foyer/src/hybrid/writer.rs index c0087068..2ef3dc8d 100644 --- a/foyer/src/hybrid/writer.rs +++ b/foyer/src/hybrid/writer.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer/src/lib.rs b/foyer/src/lib.rs index 11b06c36..b4aee403 100644 --- a/foyer/src/lib.rs +++ b/foyer/src/lib.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/foyer/src/prelude.rs b/foyer/src/prelude.rs index f08520b0..07a33acd 100644 --- a/foyer/src/prelude.rs +++ b/foyer/src/prelude.rs @@ -1,3 +1,17 @@ +// Copyright 2025 foyer Project Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Copyright 2024 foyer Project Authors // // Licensed under the Apache License, Version 2.0 (the "License");