diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-12-10 13:02:52 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-12-10 13:02:52 +0100 |
commit | cf4c70b46040a53bf3992a124ba70b1b1ca852f1 (patch) | |
tree | c321c5f549dc2d69519bd68bf540f78e7a294735 | |
parent | 34b930595f7e125cbbad64404c79de454c6e62ef (diff) |
Remove the ffi crates.
- Remove the general-purpose ffi crates. They will be moved into
their own repository. Note that we consider general-purpose ffi
crates to be a dead end: exposing Sequoia's interface requires a
large number of types and functions, and using the interface from
C turned out to be verbose and error-prone. Instead, we prefer to
write point solutions in Rust that implement exactly the
functionality the downstream consumer needs, then expose this via
ffi bindings.
- See https://gitlab.com/sequoia-pgp/sequoia-ffi.
97 files changed, 5 insertions, 15547 deletions
@@ -59,8 +59,6 @@ all: build examples .PHONY: build build: CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) $(CARGO) build $(CARGO_FLAGS) $(CARGO_PACKAGES) - $(MAKE) -Copenpgp-ffi build - $(MAKE) -Cffi build # Testing and examples. # @@ -79,8 +77,6 @@ test check: then \ echo 'WARNING: Not running other tests, because $$CARGO_PACKAGES specifies a package.'; \ else \ - $(MAKE) -Copenpgp-ffi test && \ - $(MAKE) -Cffi test && \ $(MAKE) --file=.Makefile examples; \ fi @@ -88,8 +84,6 @@ test check: examples: CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \ $(CARGO) build $(CARGO_FLAGS) --examples - $(MAKE) -Copenpgp-ffi examples - $(MAKE) -Cffi examples # Documentation. .PHONY: doc @@ -103,16 +97,12 @@ doc: # Installation. .PHONY: build-release build-release: - $(MAKE) -Copenpgp-ffi build-release - $(MAKE) -Cffi build-release $(MAKE) -Csq build-release # "install" needs "build-release" as it builds the project # with optimizations enabled. .PHONY: install install: build-release - $(MAKE) -Copenpgp-ffi install - $(MAKE) -Cffi install $(MAKE) -Csq install # Infrastructure for creating source distributions. @@ -155,8 +145,6 @@ dist-test dist-check: $(CARGO_TARGET_DIR)/dist/sequoia-$(VERSION).tar.pgp.gz .PHONY: clean clean: CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) $(CARGO) $(CARGO_FLAGS) clean - $(MAKE) -Copenpgp-ffi clean - $(MAKE) -Cffi clean .PHONY: codespell codespell: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 323e7f69..84a2b642 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -308,7 +308,7 @@ windows-gnu: - rustc --version --verbose - cargo --version script: - - cargo test --worksp |