mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: add vendored_openssl feature
This commit is contained in:
parent
92a751b32a
commit
27f4cf2d12
@ -14,7 +14,7 @@ extend = [
|
|||||||
on_error_task = "catch"
|
on_error_task = "catch"
|
||||||
|
|
||||||
[tasks.catch]
|
[tasks.catch]
|
||||||
run_task = {name = ["restore-crate-type"]}
|
run_task = { name = ["restore-crate-type"] }
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
RUST_LOG = "info"
|
RUST_LOG = "info"
|
||||||
@ -42,8 +42,8 @@ PRODUCT_NAME = "AppFlowy"
|
|||||||
CRATE_TYPE = "staticlib"
|
CRATE_TYPE = "staticlib"
|
||||||
SDK_EXT = "a"
|
SDK_EXT = "a"
|
||||||
APP_ENVIRONMENT = "local"
|
APP_ENVIRONMENT = "local"
|
||||||
FLUTTER_FLOWY_SDK_PATH="app_flowy/packages/flowy_sdk"
|
FLUTTER_FLOWY_SDK_PATH = "app_flowy/packages/flowy_sdk"
|
||||||
PROTOBUF_DERIVE_CACHE="../shared-lib/flowy-derive/src/derive_cache/derive_cache.rs"
|
PROTOBUF_DERIVE_CACHE = "../shared-lib/flowy-derive/src/derive_cache/derive_cache.rs"
|
||||||
|
|
||||||
[env.development-mac-arm64]
|
[env.development-mac-arm64]
|
||||||
RUST_LOG = "info"
|
RUST_LOG = "info"
|
||||||
@ -139,8 +139,7 @@ LINUX_ARCH = "arm64"
|
|||||||
APP_ENVIRONMENT = "production"
|
APP_ENVIRONMENT = "production"
|
||||||
|
|
||||||
[tasks.echo_env]
|
[tasks.echo_env]
|
||||||
script = [
|
script = ['''
|
||||||
'''
|
|
||||||
echo "-------- Env Parameters --------"
|
echo "-------- Env Parameters --------"
|
||||||
echo CRATE_TYPE: ${CRATE_TYPE}
|
echo CRATE_TYPE: ${CRATE_TYPE}
|
||||||
echo BUILD_FLAG: ${BUILD_FLAG}
|
echo BUILD_FLAG: ${BUILD_FLAG}
|
||||||
@ -151,8 +150,7 @@ script = [
|
|||||||
echo APP_ENVIRONMENT: ${APP_ENVIRONMENT}
|
echo APP_ENVIRONMENT: ${APP_ENVIRONMENT}
|
||||||
echo ${platforms}
|
echo ${platforms}
|
||||||
echo ${BUILD_ARCHS}
|
echo ${BUILD_ARCHS}
|
||||||
'''
|
''']
|
||||||
]
|
|
||||||
script_runner = "@shell"
|
script_runner = "@shell"
|
||||||
|
|
||||||
[env.production-ios]
|
[env.production-ios]
|
||||||
@ -166,6 +164,14 @@ BUILD_FLAG = "debug"
|
|||||||
TARGET_OS = "android"
|
TARGET_OS = "android"
|
||||||
CRATE_TYPE = "cdylib"
|
CRATE_TYPE = "cdylib"
|
||||||
FLUTTER_OUTPUT_DIR = "Debug"
|
FLUTTER_OUTPUT_DIR = "Debug"
|
||||||
|
FEATURES = "flutter,openssl_vendored"
|
||||||
|
|
||||||
|
[env.production-android]
|
||||||
|
BUILD_FLAG = "release"
|
||||||
|
TARGET_OS = "android"
|
||||||
|
CRATE_TYPE = "cdylib"
|
||||||
|
FLUTTER_OUTPUT_DIR = "Release"
|
||||||
|
FEATURES = "flutter,openssl_vendored"
|
||||||
|
|
||||||
[tasks.setup-crate-type]
|
[tasks.setup-crate-type]
|
||||||
private = true
|
private = true
|
||||||
@ -192,11 +198,9 @@ script = [
|
|||||||
script_runner = "@duckscript"
|
script_runner = "@duckscript"
|
||||||
|
|
||||||
[tasks.test-build]
|
[tasks.test-build]
|
||||||
condition = { env_set = [ "FLUTTER_FLOWY_SDK_PATH"] }
|
condition = { env_set = ["FLUTTER_FLOWY_SDK_PATH"] }
|
||||||
script = [
|
script = ["""
|
||||||
"""
|
|
||||||
cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/flowy-net
|
cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/flowy-net
|
||||||
cargo build -vv --features=dart
|
cargo build -vv --features=dart
|
||||||
""",
|
"""]
|
||||||
]
|
|
||||||
script_runner = "@shell"
|
script_runner = "@shell"
|
||||||
|
@ -29,8 +29,6 @@ dependencies:
|
|||||||
path: flowy_infra_ui_web
|
path: flowy_infra_ui_web
|
||||||
appflowy_popover:
|
appflowy_popover:
|
||||||
path: ../appflowy_popover
|
path: ../appflowy_popover
|
||||||
|
|
||||||
# Flowy packages
|
|
||||||
flowy_infra:
|
flowy_infra:
|
||||||
path: ../flowy_infra
|
path: ../flowy_infra
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ packages:
|
|||||||
path: "packages/appflowy_editor"
|
path: "packages/appflowy_editor"
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.0.4"
|
version: "0.0.5"
|
||||||
appflowy_popover:
|
appflowy_popover:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -43,6 +43,13 @@ packages:
|
|||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
archive:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: archive
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "3.3.1"
|
||||||
args:
|
args:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -660,6 +667,13 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.17.0"
|
version: "0.17.0"
|
||||||
|
intl_utils:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: intl_utils
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "2.7.0"
|
||||||
io:
|
io:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -12,30 +12,32 @@ crate-type = ["staticlib"]
|
|||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
allo-isolate = {version = "^0.1", features = ["catch-unwind",]}
|
allo-isolate = { version = "^0.1", features = ["catch-unwind"] }
|
||||||
byteorder = {version = "1.3.4"}
|
byteorder = { version = "1.3.4" }
|
||||||
ffi-support = {version = "0.4.2"}
|
ffi-support = { version = "0.4.2" }
|
||||||
protobuf = {version = "2.20.0"}
|
protobuf = { version = "2.20.0" }
|
||||||
tokio = { version = "1", features = ["rt", "rt-multi-thread"] }
|
tokio = { version = "1", features = ["rt", "rt-multi-thread"] }
|
||||||
log = "0.4.14"
|
log = "0.4.14"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = {version = "1.0"}
|
serde_json = { version = "1.0" }
|
||||||
bytes = { version = "1.0" }
|
bytes = { version = "1.0" }
|
||||||
once_cell = "1"
|
once_cell = "1"
|
||||||
crossbeam-utils = "0.8.7"
|
crossbeam-utils = "0.8.7"
|
||||||
|
|
||||||
|
|
||||||
lib-dispatch = {path = "../lib-dispatch" }
|
lib-dispatch = { path = "../lib-dispatch" }
|
||||||
flowy-sdk = {path = "../flowy-sdk"}
|
flowy-sdk = { path = "../flowy-sdk" }
|
||||||
dart-notify = {path = "../dart-notify" }
|
dart-notify = { path = "../dart-notify" }
|
||||||
flowy-derive = {path = "../../../shared-lib/flowy-derive" }
|
flowy-derive = { path = "../../../shared-lib/flowy-derive" }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["flowy-sdk/dart", "dart-notify/dart", "flutter"]
|
default = ["flowy-sdk/dart", "dart-notify/dart", "flutter"]
|
||||||
flutter = []
|
flutter = []
|
||||||
http_sync = ["flowy-sdk/http_sync", "flowy-sdk/use_bunyan"]
|
http_sync = ["flowy-sdk/http_sync", "flowy-sdk/use_bunyan"]
|
||||||
#use_serde = ["bincode"]
|
openssl_vendored = ["flowy-sdk/openssl_vendored"]
|
||||||
#use_protobuf= ["protobuf"]
|
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["protobuf_file_gen", "dart"] }
|
lib-infra = { path = "../../../shared-lib/lib-infra", features = [
|
||||||
|
"protobuf_file_gen",
|
||||||
|
"dart",
|
||||||
|
] }
|
||||||
|
@ -6,9 +6,12 @@ edition = "2018"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
diesel = {version = "1.4.8", features = ["sqlite"]}
|
diesel = { version = "1.4.8", features = ["sqlite"] }
|
||||||
diesel_derives = {version = "1.4.1", features = ["sqlite"]}
|
diesel_derives = { version = "1.4.1", features = ["sqlite"] }
|
||||||
diesel_migrations = {version = "1.4.0", features = ["sqlite"]}
|
diesel_migrations = { version = "1.4.0", features = ["sqlite"] }
|
||||||
lib-sqlite = { path = "../lib-sqlite" }
|
lib-sqlite = { path = "../lib-sqlite" }
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
openssl_vendored = ["lib-sqlite/openssl_vendored"]
|
||||||
|
@ -31,14 +31,22 @@ lib-infra = { path = "../../../shared-lib/lib-infra" }
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
bincode = { version = "1.3"}
|
bincode = { version = "1.3" }
|
||||||
protobuf = {version = "2.24.1"}
|
protobuf = { version = "2.24.1" }
|
||||||
claim = "0.5.0"
|
claim = "0.5.0"
|
||||||
tokio = { version = "1", features = ["full"]}
|
tokio = { version = "1", features = ["full"] }
|
||||||
futures-util = "0.3.15"
|
futures-util = "0.3.15"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
http_sync = ["flowy-folder/cloud_sync", "flowy-text-block/cloud_sync"]
|
http_sync = ["flowy-folder/cloud_sync", "flowy-text-block/cloud_sync"]
|
||||||
native_sync = ["flowy-folder/cloud_sync", "flowy-text-block/cloud_sync"]
|
native_sync = ["flowy-folder/cloud_sync", "flowy-text-block/cloud_sync"]
|
||||||
use_bunyan = ["lib-log/use_bunyan"]
|
use_bunyan = ["lib-log/use_bunyan"]
|
||||||
dart = ["flowy-user/dart", "flowy-net/dart", "flowy-folder/dart", "flowy-sync/dart", "flowy-grid/dart", "flowy-text-block/dart"]
|
dart = [
|
||||||
|
"flowy-user/dart",
|
||||||
|
"flowy-net/dart",
|
||||||
|
"flowy-folder/dart",
|
||||||
|
"flowy-sync/dart",
|
||||||
|
"flowy-grid/dart",
|
||||||
|
"flowy-text-block/dart",
|
||||||
|
]
|
||||||
|
openssl_vendored = ["flowy-database/openssl_vendored"]
|
||||||
|
@ -24,6 +24,7 @@ use tokio::sync::{mpsc, oneshot};
|
|||||||
|
|
||||||
pub struct TextBlockEditor {
|
pub struct TextBlockEditor {
|
||||||
pub doc_id: String,
|
pub doc_id: String,
|
||||||
|
#[allow(dead_code)]
|
||||||
rev_manager: Arc<RevisionManager>,
|
rev_manager: Arc<RevisionManager>,
|
||||||
#[cfg(feature = "sync")]
|
#[cfg(feature = "sync")]
|
||||||
ws_manager: Arc<flowy_revision::RevisionWebSocketManager>,
|
ws_manager: Arc<flowy_revision::RevisionWebSocketManager>,
|
||||||
|
@ -7,14 +7,15 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
r2d2 = "0.8.9"
|
r2d2 = "0.8.9"
|
||||||
libsqlite3-sys = {version = ">=0.8.0, <0.24.0", features = ["bundled"]}
|
libsqlite3-sys = { version = ">=0.8.0, <0.24.0", features = ["bundled"] }
|
||||||
diesel = {version = "1.4.8", features = ["sqlite"]}
|
diesel = { version = "1.4.8", features = ["sqlite"] }
|
||||||
diesel_derives = {version = "1.4.1", features = ["sqlite"]}
|
diesel_derives = { version = "1.4.1", features = ["sqlite"] }
|
||||||
diesel_migrations = {version = "1.4.0", features = ["sqlite"]}
|
diesel_migrations = { version = "1.4.0", features = ["sqlite"] }
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
scheduled-thread-pool = "0.2.5"
|
scheduled-thread-pool = "0.2.5"
|
||||||
error-chain = "=0.12.0"
|
error-chain = "=0.12.0"
|
||||||
log = "0.4.11"
|
log = "0.4.11"
|
||||||
openssl = { version = "0.10.38", features = ["vendored"] }
|
openssl = { version = "0.10.38", optional = true }
|
||||||
#[features]
|
|
||||||
#windows = ["libsqlite3-sys/bundled-windows"]
|
[features]
|
||||||
|
openssl_vendored = ["openssl/vendored"]
|
||||||
|
Loading…
Reference in New Issue
Block a user