From 5d9880af27a1c9dccc6f05310e152f3692370f74 Mon Sep 17 00:00:00 2001 From: Adam Fraser Date: Thu, 8 Feb 2024 15:05:32 -0800 Subject: [PATCH] add license --- src/analysis/mod.rs | 14 ++++++++++++++ src/component/mod.rs | 14 ++++++++++++++ src/component/parser.rs | 14 ++++++++++++++ src/component/writer.rs | 14 ++++++++++++++ src/core/mod.rs | 14 ++++++++++++++ src/core/parser.rs | 14 ++++++++++++++ src/core/writer.rs | 14 ++++++++++++++ src/customization.rs | 14 ++++++++++++++ src/lib.rs | 14 ++++++++++++++ src/metadata/mod.rs | 14 ++++++++++++++ 10 files changed, 140 insertions(+) diff --git a/src/analysis/mod.rs b/src/analysis/mod.rs index f551d6c..0b45fb7 100644 --- a/src/analysis/mod.rs +++ b/src/analysis/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Golem Cloud +// +// 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. + use crate::component::*; use crate::AstCustomization; use mappable_rc::Mrc; diff --git a/src/component/mod.rs b/src/component/mod.rs index eed56cc..3c1eb4f 100644 --- a/src/component/mod.rs +++ b/src/component/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Golem Cloud +// +// 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. + use crate::core::{ Custom, Data, Export, FuncIdx, FuncType, Import, MemIdx, Module, RetainsCustomSection, RetainsInstructions, TryFromExprSource, TypeRef, ValType, diff --git a/src/component/parser.rs b/src/component/parser.rs index a0a8a45..5476c7e 100644 --- a/src/component/parser.rs +++ b/src/component/parser.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Golem Cloud +// +// 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. + use crate::component::*; use crate::core::{Data, TryFromExprSource}; use crate::Sections; diff --git a/src/component/writer.rs b/src/component/writer.rs index d515784..f2bc3be 100644 --- a/src/component/writer.rs +++ b/src/component/writer.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Golem Cloud +// +// 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. + use crate::component::*; use crate::core::{ExportDesc, RetainsInstructions}; diff --git a/src/core/mod.rs b/src/core/mod.rs index 3ed66e3..414ff09 100644 --- a/src/core/mod.rs +++ b/src/core/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Golem Cloud +// +// 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. + use crate::{ metadata, new_core_section_cache, AstCustomization, IndexSpace, Section, SectionCache, SectionIndex, SectionType, Sections, diff --git a/src/core/parser.rs b/src/core/parser.rs index 695ed35..873099b 100644 --- a/src/core/parser.rs +++ b/src/core/parser.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Golem Cloud +// +// 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. + use crate::core::*; use crate::AstCustomization; use std::io::Write; diff --git a/src/core/writer.rs b/src/core/writer.rs index c1efad9..0b21799 100644 --- a/src/core/writer.rs +++ b/src/core/writer.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Golem Cloud +// +// 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. + use crate::core::*; use crate::AstCustomization; use std::borrow::Cow; diff --git a/src/customization.rs b/src/customization.rs index a89ae13..e8b35e1 100644 --- a/src/customization.rs +++ b/src/customization.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Golem Cloud +// +// 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. + use crate::core::{ CoreIndexSpace, CoreSectionType, Custom, Data, Expr, ExprSource, RetainsCustomSection, TryFromExprSource, diff --git a/src/lib.rs b/src/lib.rs index 936c4e6..2f9d8e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Golem Cloud +// +// 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. + use mappable_rc::Mrc; use std::cell::RefCell; use std::collections::HashMap; diff --git a/src/metadata/mod.rs b/src/metadata/mod.rs index 9dd9035..dee5f2b 100644 --- a/src/metadata/mod.rs +++ b/src/metadata/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Golem Cloud +// +// 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. + #[derive(Debug, Clone, PartialEq)] pub struct Metadata { pub name: Option,