mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
Extract common cargo info and edition 2024 fix (#13507)
This commit is contained in:
@@ -2,6 +2,12 @@
|
|||||||
resolver = "2"
|
resolver = "2"
|
||||||
members = ["napi", "core", "proxy", "macos_provider", "windows-plugin-authenticator"]
|
members = ["napi", "core", "proxy", "macos_provider", "windows-plugin-authenticator"]
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
|
version = "0.0.0"
|
||||||
|
license = "GPL-3.0"
|
||||||
|
edition = "2021"
|
||||||
|
publish = false
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
anyhow = "=1.0.94"
|
anyhow = "=1.0.94"
|
||||||
log = "=0.4.25"
|
log = "=0.4.25"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
edition = "2021"
|
|
||||||
license = "GPL-3.0"
|
|
||||||
name = "desktop_core"
|
name = "desktop_core"
|
||||||
version = "0.0.0"
|
edition = { workspace = true }
|
||||||
publish = false
|
license = { workspace = true }
|
||||||
|
version = { workspace = true }
|
||||||
|
publish = { workspace = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [
|
default = [
|
||||||
@@ -19,7 +19,7 @@ manual_test = []
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
aes = "=0.8.4"
|
aes = "=0.8.4"
|
||||||
anyhow.workspace = true
|
anyhow = { workspace = true }
|
||||||
arboard = { version = "=3.4.1", default-features = false, features = [
|
arboard = { version = "=3.4.1", default-features = false, features = [
|
||||||
"wayland-data-control",
|
"wayland-data-control",
|
||||||
] }
|
] }
|
||||||
@@ -32,7 +32,7 @@ pin-project = "=1.1.8"
|
|||||||
dirs = "=6.0.0"
|
dirs = "=6.0.0"
|
||||||
futures = "=0.3.31"
|
futures = "=0.3.31"
|
||||||
interprocess = { version = "=2.2.1", features = ["tokio"] }
|
interprocess = { version = "=2.2.1", features = ["tokio"] }
|
||||||
log.workspace = true
|
log = { workspace = true }
|
||||||
rand = "=0.8.5"
|
rand = "=0.8.5"
|
||||||
russh-cryptovec = "=0.7.3"
|
russh-cryptovec = "=0.7.3"
|
||||||
scopeguard = "=1.2.0"
|
scopeguard = "=1.2.0"
|
||||||
@@ -48,7 +48,7 @@ bitwarden-russh = { git = "https://github.com/bitwarden/bitwarden-russh.git", re
|
|||||||
tokio = { workspace = true, features = ["io-util", "sync", "macros", "net"] }
|
tokio = { workspace = true, features = ["io-util", "sync", "macros", "net"] }
|
||||||
tokio-stream = { workspace = true, features = ["net"] }
|
tokio-stream = { workspace = true, features = ["net"] }
|
||||||
tokio-util = { workspace = true, features = ["codec"] }
|
tokio-util = { workspace = true, features = ["codec"] }
|
||||||
thiserror.workspace = true
|
thiserror = { workspace = true }
|
||||||
typenum = "=1.17.0"
|
typenum = "=1.17.0"
|
||||||
pkcs8 = { version = "=0.10.2", features = ["alloc", "encryption", "pem"] }
|
pkcs8 = { version = "=0.10.2", features = ["alloc", "encryption", "pem"] }
|
||||||
rsa = "=0.9.6"
|
rsa = "=0.9.6"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "macos_provider"
|
name = "macos_provider"
|
||||||
license = "GPL-3.0"
|
edition = { workspace = true }
|
||||||
version = "0.0.0"
|
license = { workspace = true }
|
||||||
edition = "2021"
|
version = { workspace = true }
|
||||||
publish = false
|
publish = { workspace = true }
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "uniffi-bindgen"
|
name = "uniffi-bindgen"
|
||||||
@@ -16,11 +16,11 @@ bench = false
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
desktop_core = { path = "../core" }
|
desktop_core = { path = "../core" }
|
||||||
futures = "=0.3.31"
|
futures = "=0.3.31"
|
||||||
log.workspace = true
|
log = { workspace = true }
|
||||||
serde = { workspace = true, features = ["derive"] }
|
serde = { workspace = true, features = ["derive"] }
|
||||||
serde_json.workspace = true
|
serde_json = { workspace = true }
|
||||||
tokio = { workspace = true, features = ["sync"] }
|
tokio = { workspace = true, features = ["sync"] }
|
||||||
tokio-util.workspace = true
|
tokio-util = { workspace = true }
|
||||||
uniffi = { version = "=0.28.3", features = ["cli"] }
|
uniffi = { version = "=0.28.3", features = ["cli"] }
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
edition = "2021"
|
|
||||||
exclude = ["index.node"]
|
|
||||||
license = "GPL-3.0"
|
|
||||||
name = "desktop_napi"
|
name = "desktop_napi"
|
||||||
version = "0.0.0"
|
exclude = ["index.node"]
|
||||||
publish = false
|
edition = { workspace = true }
|
||||||
|
license = { workspace = true }
|
||||||
|
version = { workspace = true }
|
||||||
|
publish = { workspace = true }
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
@@ -16,15 +16,15 @@ manual_test = []
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = "=0.22.1"
|
base64 = "=0.22.1"
|
||||||
hex = "=0.4.3"
|
hex = "=0.4.3"
|
||||||
anyhow = "=1.0.94"
|
anyhow = { workspace = true }
|
||||||
desktop_core = { path = "../core" }
|
desktop_core = { path = "../core" }
|
||||||
napi = { version = "=2.16.15", features = ["async"] }
|
napi = { version = "=2.16.15", features = ["async"] }
|
||||||
napi-derive = "=2.16.13"
|
napi-derive = "=2.16.13"
|
||||||
serde = { workspace = true, features = ["derive"] }
|
serde = { workspace = true, features = ["derive"] }
|
||||||
serde_json.workspace = true
|
serde_json = { workspace = true }
|
||||||
tokio.workspace = true
|
tokio = { workspace = true }
|
||||||
tokio-util.workspace = true
|
tokio-util = { workspace = true }
|
||||||
tokio-stream.workspace = true
|
tokio-stream = { workspace = true }
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
windows-registry = "=0.4.0"
|
windows-registry = "=0.4.0"
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
[package]
|
[package]
|
||||||
edition = "2021"
|
|
||||||
license = "GPL-3.0"
|
|
||||||
name = "desktop_objc"
|
name = "desktop_objc"
|
||||||
version = "0.0.0"
|
edition = { workspace = true }
|
||||||
publish = false
|
license = { workspace = true }
|
||||||
|
version = { workspace = true }
|
||||||
|
publish = { workspace = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow.workspace = true
|
anyhow = { workspace = true }
|
||||||
thiserror.workspace = true
|
thiserror = { workspace = true }
|
||||||
tokio.workspace = true
|
tokio = { workspace = true }
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
core-foundation = "=0.10.0"
|
core-foundation = "=0.10.0"
|
||||||
|
|||||||
@@ -68,13 +68,13 @@ mod objc {
|
|||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
extern "C" {
|
unsafe extern "C" {
|
||||||
pub fn runCommand(context: *mut c_void, value: *const c_char);
|
pub unsafe fn runCommand(context: *mut c_void, value: *const c_char);
|
||||||
pub fn freeObjCString(value: &ObjCString);
|
pub unsafe fn freeObjCString(value: &ObjCString);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This function is called from the ObjC code to return the output of the command
|
/// This function is called from the ObjC code to return the output of the command
|
||||||
#[no_mangle]
|
#[unsafe(no_mangle)]
|
||||||
pub extern "C" fn commandReturn(context: &mut CommandContext, value: ObjCString) -> bool {
|
pub extern "C" fn commandReturn(context: &mut CommandContext, value: ObjCString) -> bool {
|
||||||
let value: String = match value.try_into() {
|
let value: String = match value.try_into() {
|
||||||
Ok(value) => value,
|
Ok(value) => value,
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
[package]
|
[package]
|
||||||
edition = "2021"
|
|
||||||
exclude = ["index.node"]
|
|
||||||
license = "GPL-3.0"
|
|
||||||
name = "desktop_proxy"
|
name = "desktop_proxy"
|
||||||
version = "0.0.0"
|
edition = { workspace = true }
|
||||||
publish = false
|
license = { workspace = true }
|
||||||
|
version = { workspace = true }
|
||||||
|
publish = { workspace = true }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow.workspace = true
|
anyhow = { workspace = true }
|
||||||
desktop_core = { path = "../core" }
|
desktop_core = { path = "../core" }
|
||||||
futures = "=0.3.31"
|
futures = "=0.3.31"
|
||||||
log.workspace = true
|
log = { workspace = true }
|
||||||
simplelog = "=0.12.2"
|
simplelog = "=0.12.2"
|
||||||
tokio = { workspace = true, features = ["io-std", "io-util", "macros", "rt"] }
|
tokio = { workspace = true, features = ["io-std", "io-util", "macros", "rt"] }
|
||||||
tokio-util = { workspace = true, features = ["codec"] }
|
tokio-util = { workspace = true, features = ["codec"] }
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "windows-plugin-authenticator"
|
name = "windows-plugin-authenticator"
|
||||||
version = "0.0.0"
|
edition = { workspace = true }
|
||||||
edition = "2021"
|
license = { workspace = true }
|
||||||
license = "GPL-3.0"
|
version = { workspace = true }
|
||||||
publish = false
|
publish = { workspace = true }
|
||||||
|
|
||||||
[target.'cfg(target_os = "windows")'.build-dependencies]
|
[target.'cfg(target_os = "windows")'.build-dependencies]
|
||||||
bindgen = "0.71.1"
|
bindgen = "0.71.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user