diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..382b6b9 --- /dev/null +++ b/NOTICE @@ -0,0 +1,7 @@ +php-tokio - Use any async Rust library from PHP! + +Copyright 2023-2024 Daniil Gentili + +Homepage: https://github.com/danog/php-tokio + + diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs index e3151d6..6ec1f5a 100644 --- a/crates/macros/src/lib.rs +++ b/crates/macros/src/lib.rs @@ -1,3 +1,17 @@ +// Copyright 2023-2024 Daniil Gentili +// +// 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 anyhow::{bail, Result}; use proc_macro2::Span; use proc_macro2::TokenStream; diff --git a/src/event_loop.rs b/src/event_loop.rs index 8b42514..a07d5ec 100644 --- a/src/event_loop.rs +++ b/src/event_loop.rs @@ -1,3 +1,17 @@ +// Copyright 2023-2024 Daniil Gentili +// +// 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::borrow_unchecked::borrow_unchecked; use ext_php_rs::{boxed::ZBox, call_user_func, prelude::*, types::ZendHashTable, zend::Function}; use lazy_static::lazy_static; diff --git a/src/lib.rs b/src/lib.rs index a905410..9987afb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,17 @@ +// Copyright 2023-2024 Daniil Gentili +// +// 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. + pub mod borrow_unchecked; mod event_loop;