mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Remove useless makefile target
This commit is contained in:
parent
50c1151921
commit
168d999359
2 changed files with 4 additions and 8 deletions
4
Makefile
4
Makefile
|
|
@ -149,10 +149,6 @@ install-rust:
|
|||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
|
||||
rustup update nightly
|
||||
|
||||
rust-ext:
|
||||
[ "$$READTHEDOCS" != "True" ] || $(MAKE) install-rust
|
||||
cd ./rust && cargo build --release
|
||||
|
||||
rust/vdirsyncer_rustext.h:
|
||||
cbindgen -c rust/cbindgen.toml rust/ > $@
|
||||
|
||||
|
|
|
|||
8
setup.py
8
setup.py
|
|
@ -43,14 +43,14 @@ requirements = [
|
|||
|
||||
def build_native(spec):
|
||||
build = spec.add_external_build(
|
||||
cmd=['make', 'rust-ext'],
|
||||
path='.'
|
||||
cmd=['cargo', 'build', '--release'],
|
||||
path='./rust/'
|
||||
)
|
||||
|
||||
spec.add_cffi_module(
|
||||
module_path='vdirsyncer._native',
|
||||
dylib=lambda: build.find_dylib(
|
||||
'vdirsyncer_rustext', in_path='rust/target/release'),
|
||||
dylib=lambda: build.find_dylib('vdirsyncer_rustext',
|
||||
in_path='target/release'),
|
||||
header_filename='rust/vdirsyncer_rustext.h',
|
||||
# Rust bug: If thread-local storage is used, this flag is necessary
|
||||
# (mitsuhiko)
|
||||
|
|
|
|||
Loading…
Reference in a new issue