mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
修改一些信息(
This commit is contained in:
parent
5c3c6f6c2f
commit
dffe101223
1
ica-rs/.gitignore
vendored
1
ica-rs/.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
target
|
||||
Cargo.lock
|
||||
|
|
1972
ica-rs/Cargo.lock
generated
1972
ica-rs/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
|
@ -1,33 +1,27 @@
|
|||
[package]
|
||||
name = "ica-rs"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
ed25519 = "2.2.3"
|
||||
ed25519-dalek = "2.1.0"
|
||||
ed25519-dalek = "2.1.1"
|
||||
hex = "0.4.3"
|
||||
rust_socketio = "0.4.4"
|
||||
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0.108"
|
||||
toml = "0.8.8"
|
||||
serde_json = "1.0"
|
||||
toml = "0.8.10"
|
||||
|
||||
colored = "2.1.0"
|
||||
# inline-python = "0.12.0"
|
||||
|
||||
tracing = "0.1.40"
|
||||
tracing-subscriber = { version = "0.3.18", features = ["time"] }
|
||||
|
||||
[dependencies.pyo3]
|
||||
version = "0.20.2"
|
||||
# features = ["auto-initialize"]
|
||||
|
||||
[patch.crates-io]
|
||||
rust_socketio = { git = "https://github.com/shenjackyuanjie/rust-socketio.git", branch = "mult_payload" }
|
||||
|
||||
[build-dependencies]
|
||||
pkg-config = "0.3.29"
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
use std::env;
|
||||
|
||||
#[allow(unused)]
|
||||
// 指定 pyo3 的绑定对象
|
||||
fn pyo3_config() {
|
||||
// PYO3_PYTHON=xxxx
|
||||
#[cfg(windows)]
|
||||
{
|
||||
env::set_var("PYO3_PYTHON", "python3.10")
|
||||
}
|
||||
// wsl
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
// env::set_var("PYO3_PRINT_CONFIG", "1");
|
||||
// env::set_var("PYO3_PYTHON", "/usr/bin/python3.10");
|
||||
|
||||
// cargo:rustc-link-lib=static=
|
||||
// println!("cargo:rustc-link-lib=python3.10");
|
||||
// println!("cargo:rustc-link-arg-bins=-Wl,-Bstatic");
|
||||
// println!("cargo:rustc-link-arg-bins=-Wl,--whole-archive");
|
||||
// println!("cargo:rustc-link-arg-bins=-lpython3.10");
|
||||
// println!("cargo:rustc-link-arg-bins=-Wl,-Bdynamic");
|
||||
// println!("cargo:rustc-link-arg-bins=-Wl,--no-whole-archive");
|
||||
// println!("cargo:rustc-link-arg-bins=-lz");
|
||||
// println!("cargo:rustc-link-arg-bins=-lexpat");
|
||||
// println!("cargo:rustc-link-arg-bins=-lutil");
|
||||
// println!("cargo:rustc-link-arg-bins=-lm");
|
||||
// println!("cargo:rustc-link-arg-bins=-Wl,--export-dynamic");
|
||||
|
||||
// pkg_config::Config::new()
|
||||
// .atleast_version("3.8")
|
||||
// .probe("python3-embed")
|
||||
// .unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
pyo3_config();
|
||||
}
|
Loading…
Reference in New Issue
Block a user