SPDX license and workspace inheritence for re-used metadata (#833)

use workspace inheritence for license, edition and repo URL
This commit is contained in:
jake 2023-05-20 02:52:55 +01:00 committed by GitHub
parent 3880428596
commit 1aa8826398
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 104 additions and 56 deletions

View file

@ -12,6 +12,11 @@ members = [
"apps/server",
]
[workspace.package]
license = "AGPL-3.0-only"
edition = "2021"
repository = "https://github.com/spacedriveapp/spacedrive"
[workspace.dependencies]
prisma-client-rust = { git = "https://github.com/Brendonovich/prisma-client-rust", rev = "5d8029e0a0b590e1b8f674339ba880114a1becc8", features = [
"rspc",

View file

@ -1,7 +1,9 @@
[package]
name = "cli"
version = "0.1.0"
edition = "2021"
license.workspace = true
repository.workspace = true
edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -1,7 +1,9 @@
[package]
name = "sd-desktop-macos"
version = "0.1.0"
edition = "2021"
license.workspace = true
repository.workspace = true
edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -3,15 +3,22 @@ name = "spacedrive"
version = "0.1.0"
description = "The universal file manager."
authors = ["Spacedrive Technology Inc."]
license = ""
repository = "https://github.com/spacedriveapp/spacedrive"
default-run = "spacedrive"
edition = "2021"
license.workspace = true
repository.workspace = true
edition.workspace = true
[dependencies]
tauri = { version = "1.3.0", features = ["api-all", "linux-protocol-headers", "macos-private-api"] }
tauri = { version = "1.3.0", features = [
"api-all",
"linux-protocol-headers",
"macos-private-api",
] }
rspc = { workspace = true, features = ["tauri"] }
httpz = { workspace = true, features = ["axum", "tauri"] } # TODO: The `axum` feature should be only enabled on Linux but this currently can't be done: https://github.com/rust-lang/cargo/issues/1197
httpz = { workspace = true, features = [
"axum",
"tauri",
] } # TODO: The `axum` feature should be only enabled on Linux but this currently can't be done: https://github.com/rust-lang/cargo/issues/1197
sd-core = { path = "../../../core", features = ["ffmpeg", "location-watcher"] }
tokio = { workspace = true, features = ["sync"] }
window-shadows = "0.2.0"

View file

@ -1,8 +1,10 @@
[package]
name = "sd-mobile-android"
version = "0.1.0"
edition = "2021"
rust-version = "1.64.0"
license.workspace = true
repository.workspace = true
edition.workspace = true
[lib]
# Android can use dynamic linking since all FFI is done via JNI

View file

@ -1,8 +1,10 @@
[package]
name = "sd-mobile-core"
version = "0.1.0"
edition = "2021"
rust-version = "1.64.0"
license.workspace = true
repository.workspace = true
edition.workspace = true
[dependencies]
once_cell = "1.15.0"

View file

@ -1,9 +1,11 @@
[package]
name = "sd-mobile-ios"
version = "0.1.0"
edition = "2021"
rust-version = "1.64.0"
license.workspace = true
repository.workspace = true
edition.workspace = true
[lib]
# iOS requires static linking

View file

@ -1,7 +1,9 @@
[package]
name = "server"
version = "0.1.0"
edition = "2021"
license.workspace = true
repository.workspace = true
edition.workspace = true
[dependencies]
sd-core = { path = "../../core", features = ["ffmpeg"] }

View file

@ -3,10 +3,10 @@ name = "sd-core"
version = "0.1.0"
description = "Virtual distributed filesystem engine that powers Spacedrive."
authors = ["Spacedrive Technology Inc."]
license = "GNU GENERAL PUBLIC LICENSE"
repository = "https://github.com/spacedriveapp/spacedrive"
edition = "2021"
rust-version = "1.68.1"
license.workspace = true
repository.workspace = true
edition.workspace = true
[features]
default = []

View file

@ -4,8 +4,10 @@ version = "0.0.0"
authors = ["Jake Robinson <jake@spacedrive.com>"]
readme = "README.md"
description = "A library to handle cryptographic functions within Spacedrive"
edition = "2021"
rust-version = "1.67.0"
license.workspace = true
repository.workspace = true
edition.workspace = true
[features]
rspc = ["dep:rspc", "dep:specta"]

View file

@ -1,9 +1,11 @@
[package]
name = "deps-generator"
version = "0.0.0"
edition = "2021"
authors = ["Jake Robinson <jake@spacedrive.com>"]
description = "A tool to compile all Spacedrive dependencies and their respective licenses"
license.workspace = true
repository.workspace = true
edition.workspace = true
[dependencies]
reqwest = { version = "0.11.14", features = ["blocking"] }

View file

@ -2,12 +2,12 @@
name = "sd-ffmpeg"
version = "0.1.0"
authors = ["Ericson Soares <ericson.ds999@gmail.com>"]
edition = "2021"
readme = "README.md"
description = "A simple library to generate video thumbnails using ffmpeg with the webp format"
license = "MIT"
rust-version = "1.64.0"
resolver = "2"
license.workspace = true
repository.workspace = true
edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -1,11 +1,13 @@
[package]
name = "sd-file-ext"
version = "0.0.0"
edition = "2021"
authors = [
"Brendan Allen <brendan@spacedrive.com>",
"Jamie Pine <jamie@spacedrive.com>",
]
license.workspace = true
repository.workspace = true
edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View file

@ -1,7 +1,9 @@
[package]
name = "sd-macos"
version = "0.1.0"
edition = "2021"
license.workspace = true
repository.workspace = true
edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -3,7 +3,9 @@ name = "sd-p2p"
version = "0.1.0"
description = "Rust Peer to Peer Networking Library"
authors = ["Oscar Beaumont <oscar@otbeaumont.me>"]
edition = "2021"
license.workspace = true
repository.workspace = true
edition.workspace = true
[features]
default = []
@ -11,7 +13,13 @@ serde = []
specta = []
[dependencies]
tokio = { workspace = true, features = ["macros", "sync", "time", "io-util", "fs"] }
tokio = { workspace = true, features = [
"macros",
"sync",
"time",
"io-util",
"fs",
] }
libp2p = { version = "0.51.0", features = ["tokio", "quic", "serde"] }
mdns-sd = "0.6.1"
thiserror = "1.0.39"

View file

@ -1,7 +1,9 @@
[package]
name = "prisma-cli"
version = "0.1.0"
edition = "2021"
license.workspace = true
repository.workspace = true
edition.workspace = true
[dependencies]
prisma-client-rust-cli = { workspace = true }

View file

@ -1,7 +1,9 @@
[package]
name = "sd-sync-generator"
version = "0.1.0"
edition = "2021"
license.workspace = true
repository.workspace = true
edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -1,7 +1,9 @@
[package]
name = "sd-sync"
version = "0.1.0"
edition = "2021"
license.workspace = true
repository.workspace = true
edition.workspace = true
[dependencies]
rand = "0.8.5"

View file

@ -1,9 +1,11 @@
[package]
name = "sd-sync-example"
version = "0.1.0"
edition = "2021"
rust-version = "1.64"
publish = false
license.workspace = true
repository.workspace = true
edition.workspace = true
[dependencies]
serde_json = "1.0.85"