Skip to content

Commit

Permalink
add copyright notice
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmal committed Jan 19, 2025
1 parent 98ccc4f commit 8cd8b93
Show file tree
Hide file tree
Showing 25 changed files with 577 additions and 0 deletions.
24 changes: 24 additions & 0 deletions bindings/ceylon/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/


fn version() -> String {
env!("CARGO_PKG_VERSION").to_string()
}
Expand Down
24 changes: 24 additions & 0 deletions bindings/ceylon/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/


#[tokio::main]
async fn main() {}
23 changes: 23 additions & 0 deletions libs/ceylon-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

mod utils;
mod workspace;

Expand Down
23 changes: 23 additions & 0 deletions libs/ceylon-core/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

pub mod env;
23 changes: 23 additions & 0 deletions libs/ceylon-core/src/utils/env.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

use std::collections::HashMap;
use std::fs::File;
use std::io::Write;
Expand Down
23 changes: 23 additions & 0 deletions libs/ceylon-core/src/workspace.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

mod admin_agent;
mod agent;
mod message;
Expand Down
23 changes: 23 additions & 0 deletions libs/ceylon-core/src/workspace/admin_agent.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

use std::collections::HashMap;

use std::sync::Arc;
Expand Down
23 changes: 23 additions & 0 deletions libs/ceylon-core/src/workspace/agent.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

use std::fmt::Debug;

use serde::{Deserialize, Serialize};
Expand Down
23 changes: 23 additions & 0 deletions libs/ceylon-core/src/workspace/message.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

// In message.rs
use serde::{Deserialize, Serialize};
use sangedama::peer::message::data::NodeMessage;
Expand Down
23 changes: 23 additions & 0 deletions libs/ceylon-core/src/workspace/worker_agent.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

use crate::workspace::agent::{
AgentDetail, ENV_WORKSPACE_ID, ENV_WORKSPACE_IP, ENV_WORKSPACE_PEER, ENV_WORKSPACE_PORT,
};
Expand Down
23 changes: 23 additions & 0 deletions libs/sangedama/src/common.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

// pub fn setup_env() {
// dotenvy::from_filename(".env").expect("Failed to load .env file");
// }
23 changes: 23 additions & 0 deletions libs/sangedama/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

mod common;
pub mod peer;
23 changes: 23 additions & 0 deletions libs/sangedama/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

mod peer;

use std::net::Ipv4Addr;
Expand Down
23 changes: 23 additions & 0 deletions libs/sangedama/src/peer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2023-2025 SYIGEN LTD.
* Author: Dewmal - [email protected]
* Created: 2025-01-19
* Ceylon Project - https://github.com/ceylonai/ceylon
*
* 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.
*
* This file is part of Ceylon Project.
* Original authors: Dewmal - [email protected]
* For questions and support: https://github.com/ceylonai/ceylon/issues
*/

mod behaviour;
pub mod message;
pub mod node;
Expand Down
Loading

0 comments on commit 8cd8b93

Please sign in to comment.