Skip to content

Commit 5a3494c

Browse files
committed
Change license
1 parent a051825 commit 5a3494c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+205
-750
lines changed

LICENSE

+201-674
Large diffs are not rendered by default.

cli/bin/wasmo.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use clap::{Parser, Subcommand};
42

53
#[derive(Parser, Debug)]

runtime/lib/api.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
mod imports;
42
mod instance;
53
mod module;

runtime/lib/api/imports.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
mod imports;
42
mod memory;
53
mod table;

runtime/lib/api/imports/imports.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
/// `Imports` is a set of user-supplied objects that are exposed to a WebAssembly `Instance`.
42
///
53
/// It is different from compiler `Imports` type because it does not necessarily contain a resolution of all the imports an Instance needs.

runtime/lib/api/imports/memory.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use crate::types::Limits;
42

53
pub struct Memory {

runtime/lib/api/imports/table.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
1+

runtime/lib/api/instance.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use super::Store;
42
use crate::compiler::value::Value;
53
use crate::{Imports, Module};

runtime/lib/api/module.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use crate::{compiler::Compiler, Imports, Instance, Options};
42
use anyhow::Result;
53
use serde::{Deserialize, Serialize};

runtime/lib/api/options.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use serde::{Deserialize, Serialize};
42

53
/// The different options for configuring the runtime.

runtime/lib/api/store.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
mod store;
42

53
pub use store::*;

runtime/lib/api/store/store.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use serde::{Deserialize, Serialize};
42

53
/// Store manages the entire global state accessible to a WebAssembly instance.

runtime/lib/compiler.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
mod compiler;
42
mod data;
53
mod elem;

runtime/lib/compiler/compiler.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
21

32
use std::pin::Pin;
43

runtime/lib/compiler/data.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use serde::{Deserialize, Serialize};
42

53
/// The `Data` section contains the initial values of the linear memory.

runtime/lib/compiler/elem.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use serde::{Deserialize, Serialize};
42

53
#[derive(Debug, Serialize, Deserialize)]

runtime/lib/compiler/exports.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
21

32
use std::collections::HashMap;
43

runtime/lib/compiler/function.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use serde::{Deserialize, Serialize};
42

53
#[derive(Debug, Serialize, Deserialize, Default)]

runtime/lib/compiler/global.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use crate::types::ValType;
42

53
use serde::{Deserialize, Serialize};

runtime/lib/compiler/imports.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use serde::{Deserialize, Serialize};
42

53
#[derive(Debug, Serialize, Deserialize, Default)]

runtime/lib/compiler/llvm.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
mod context;
42
mod function;
53
mod llvm;

runtime/lib/compiler/llvm/context.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use std::rc::Rc;
42

53
use anyhow::Result;

runtime/lib/compiler/llvm/function.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use anyhow::Result;
42
use std::{ffi::CString, rc::Rc};
53

runtime/lib/compiler/llvm/llvm.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use std::pin::Pin;
42

53
use super::{context::LLContext, module::LLModule};
6-
use llvm_sys::core::LLVMShutdown;
74
use anyhow::Result;
5+
use llvm_sys::core::LLVMShutdown;
86

97
/// Converts WebAssembly semantics to LLVM code, handles materialization.
108
///

runtime/lib/compiler/llvm/module.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
21

32
use std::{ffi::CString, rc::Rc};
43

@@ -26,7 +25,7 @@ use super::{context::LLContext, function::LLFunction, types::LLFunctionType};
2625
/// - https://lists.llvm.org/pipermail/llvm-dev/2018-September/126134.html
2726
/// - https://llvm.org/doxygen/Module_8cpp_source.html#l00079
2827
/// - https://llvm.org/doxygen/LLVMContextImpl_8cpp_source.html#l00052
29-
///
28+
///
3029
/// # Ownership
3130
/// ???
3231
///

runtime/lib/compiler/llvm/orc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
1+
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
pub(crate) struct LLTargetMachine {
42
target_machine: LLVMTargetMachineRef,
53
}

runtime/lib/compiler/llvm/types.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
21

32
use std::rc::Rc;
43

runtime/lib/compiler/memory.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use crate::types::Limits;
42

53
use serde::{Deserialize, Serialize};

runtime/lib/compiler/table.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use crate::types::{Limits, ValType};
42
use serde::{Deserialize, Serialize};
53

runtime/lib/compiler/utils.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
pub mod convert {
42
use crate::{
53
compiler::{DataKind, ElementKind},

runtime/lib/compiler/value.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use serde::{Deserialize, Serialize};
42

53
#[derive(Debug, Serialize, Deserialize)]

runtime/lib/context.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
mod address;
42
mod sizes;
53

runtime/lib/context/address.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
use serde::{Deserialize, Serialize};
42

53
#[derive(Debug, Serialize, Deserialize, Default)]

runtime/lib/context/sizes.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
pub const _POINTER_SIZE: u8 = std::mem::size_of::<usize>() as u8;
42
pub const _LENGTH_SIZE: u8 = std::mem::size_of::<u32>() as u8;
53
pub const _TYPE_INDEX_SIZE: u8 = std::mem::size_of::<u32>() as u8;

runtime/lib/errors.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
21

32
use std::fmt::Display;
43

runtime/lib/intrinsics.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
mod memory;
42

53
pub use memory::*;

runtime/lib/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
mod api;
42
mod compiler;
53
mod context;

runtime/lib/types.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
21

32
use serde::{Deserialize, Serialize};
43

tests/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
#[cfg(test)]
42
mod runtime;

tests/runtime.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
mod module;

tests/runtime/module.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2-
31
mod test {
42
use wasmo_runtime::{Module, Options};
53

0 commit comments

Comments
 (0)