Skip to content

Commit

Permalink
feat/licenses (#155)
Browse files Browse the repository at this point in the history
* chore(license): add template

Signed-off-by: Daniel Thompson-Yvetot <[email protected]>

* chore(license): examples

Signed-off-by: Daniel Thompson-Yvetot <[email protected]>

* chore(license): add SPDX licenses

Signed-off-by: Daniel Thompson-Yvetot <[email protected]>

* chore(authors): name tauri programme

Signed-off-by: Daniel Thompson-Yvetot <[email protected]>

* fix(cargo): proper license naming

Signed-off-by: Daniel Thompson-Yvetot <[email protected]>
  • Loading branch information
nothingismagick authored Apr 14, 2021
1 parent c1b3525 commit db64fc6
Show file tree
Hide file tree
Showing 33 changed files with 142 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changes/license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"wry": minor
---

Wry now accepts multiple custom protocol registerations.

5 changes: 2 additions & 3 deletions .changes/protocols.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
"wry": minor
"wry": patch
---

Wry now accepts multiple custom protocol registerations.

Apply license header for SPDX compliance.
3 changes: 3 additions & 0 deletions .license_template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Copyright {20\d{2}(-20\d{2})?} Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ workspace = { }
[package]
name = "wry"
version = "0.7.0"
authors = [ "Ngo Iok Ui <[email protected]>" ]
authors = [ "Tauri Programme within The Commons Conservancy" ]
edition = "2018"
license = "Apache-2.0/MIT"
license = "Apache-2.0 OR MIT"
description = "Cross-platform WebView rendering library"
readme = "README.md"
repository = "https://github.com/tauri-apps/wry"
Expand Down
20 changes: 20 additions & 0 deletions LICENSE.spdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SPDXVersion: SPDX-2.1
DataLicense: CC0-1.0
PackageName: wry
DataFormat: SPDXRef-1
PackageSupplier: Organization: The Tauri Programme in the Commons Conservancy
PackageHomePage: https://tauri.app
PackageLicenseDeclared: Apache-2.0
PackageLicenseDeclared: MIT
PackageCopyrightText: 2019-2021, The Tauri Programme in the Commons Conservancy
PackageSummary: <text>Wry is the official, rust-based webview
windowing service for Tauri.
</text>
PackageComment: <text>The package includes the following libraries; see
Relationship information.
</text>
Created: 2020-05-20T09:00:00Z
PackageDownloadLocation: git://github.com/tauri-apps/wry
PackageDownloadLocation: git+https://github.com/tauri-apps/tauri.git
PackageDownloadLocation: git+ssh://github.com/tauri-apps/wry.git
Creator: Person: Daniel Thompson-Yvetot
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

#[cfg(target_os = "linux")]
fn main() {}

Expand Down
4 changes: 4 additions & 0 deletions examples/custom_titlebar.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use wry::{Application, Attributes, Result, RpcRequest, WindowProxy, WindowRpcHandler};

fn main() -> Result<()> {
Expand Down
4 changes: 4 additions & 0 deletions examples/custom_user_data.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use std::{fs, path::PathBuf};
use wry::{Application, Attributes, Result};

Expand Down
4 changes: 4 additions & 0 deletions examples/dragndrop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use wry::{Application, Attributes, Result};

static TEST_HTML: &str = r#"data:text/html,
Expand Down
4 changes: 4 additions & 0 deletions examples/fullscreen.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use wry::{Application, Attributes, Result};

fn main() -> Result<()> {
Expand Down
4 changes: 4 additions & 0 deletions examples/gtk.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

#[cfg(not(target_os = "linux"))]
fn main() {}

Expand Down
4 changes: 4 additions & 0 deletions examples/hello_world.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use wry::{Application, Attributes, Result};

fn main() -> Result<()> {
Expand Down
4 changes: 4 additions & 0 deletions examples/multi_window.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use serde_json::Value;
use wry::{Application, Attributes, Result, RpcRequest, WindowProxy};

Expand Down
4 changes: 4 additions & 0 deletions examples/rpc.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use serde::{Deserialize, Serialize};
use serde_json::Value;
use wry::{Application, Attributes, Result, RpcRequest, RpcResponse, WindowProxy};
Expand Down
4 changes: 4 additions & 0 deletions examples/transparent.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use wry::{Application, Attributes, Result};

fn main() -> Result<()> {
Expand Down
4 changes: 4 additions & 0 deletions examples/winit.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

#[cfg(target_os = "linux")]
fn main() {}

Expand Down
1 change: 1 addition & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ use_try_shorthand = false
use_field_init_shorthand = false
force_explicit_abi = true
imports_granularity = "Crate"
license_template_path = ".license_template"
4 changes: 4 additions & 0 deletions src/application/attributes.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use crate::{Result, RpcRequest, RpcResponse, WindowProxy};

use std::{
Expand Down
4 changes: 4 additions & 0 deletions src/application/general.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use crate::{
application::{InnerWebViewAttributes, InnerWindowAttributes},
ApplicationProxy, Attributes, CustomProtocol, Error, Event as WryEvent, Icon, Message, Result,
Expand Down
4 changes: 4 additions & 0 deletions src/application/gtkrs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use crate::{
application::{InnerWebViewAttributes, InnerWindowAttributes},
ApplicationProxy, Attributes, CustomProtocol, Error, Event as WryEvent, Icon, Message, Result,
Expand Down
4 changes: 4 additions & 0 deletions src/application/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

#[cfg(not(target_os = "linux"))]
mod general;
#[cfg(not(target_os = "linux"))]
Expand Down
4 changes: 4 additions & 0 deletions src/file_drop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use std::path::PathBuf;

use crate::WindowProxy;
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

//! Wry is a Cross-platform WebView rendering library.
//!
//! There are two main ways to build WebView windows: [`Application`] and build by yourself.
Expand Down
4 changes: 4 additions & 0 deletions src/webview/linux/file_drop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use std::{cell::Cell, path::PathBuf, rc::Rc};

use gtk::WidgetExt;
Expand Down
4 changes: 4 additions & 0 deletions src/webview/linux/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use std::{path::PathBuf, rc::Rc};

use gdk::RGBA;
Expand Down
4 changes: 4 additions & 0 deletions src/webview/macos/file_drop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use std::{
ffi::{c_void, CStr},
path::PathBuf,
Expand Down
4 changes: 4 additions & 0 deletions src/webview/macos/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use std::{
ffi::{c_void, CStr},
os::raw::c_char,
Expand Down
4 changes: 4 additions & 0 deletions src/webview/mimetype.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use std::fmt;

const MIMETYPE_PLAIN: &str = "text/plain";
Expand Down
4 changes: 4 additions & 0 deletions src/webview/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

//! [`WebView`] struct and associated types.
mod mimetype;
Expand Down
4 changes: 4 additions & 0 deletions src/webview/win32/file_drop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use crate::{FileDropEvent, FileDropHandler};

// A silly implementation of file drop handling for Windows!
Expand Down
4 changes: 4 additions & 0 deletions src/webview/win32/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

mod file_drop;

use crate::{webview::mimetype::MimeType, FileDropHandler, Result, RpcHandler};
Expand Down
4 changes: 4 additions & 0 deletions src/webview/winrt/file_drop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

use windows::{Abi, Interface};

use windows_webview2::Windows::Win32::{
Expand Down
4 changes: 4 additions & 0 deletions src/webview/winrt/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

mod file_drop;

use windows_webview2::{
Expand Down

0 comments on commit db64fc6

Please sign in to comment.