New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compute SHA1 and SHA2 hashes using Rust crates #162

Merged
merged 5 commits into from Mar 13, 2017
Jump to file or symbol
Failed to load files and symbols.
+280 −1,899
Diff settings

Always

Just for now

Copy path View file
@@ -0,0 +1,29 @@
#!/bin/bash
# This is separate from .travis.yml so we terminate as soon as
# anything errors.
# See https://github.com/travis-ci/travis-ci/issues/1066
set -e
set -x
export PATH=$PATH:~/.cargo/bin
echo "Checking formatting"
cd rust_src
cargo fmt -- --version
cd src && cargo fmt -- --write-mode=diff && cd ..
cd remacs-sys && cargo fmt -- --write-mode=diff && cd ..
cd alloc_unexecmacosx && cargo fmt -- --write-mode=diff && cd ..
cd ..
echo 'Configuring Emacs for building'
./autogen.sh
# These configure flags are only required on OS X.
# TODO: remove them.
./configure --without-makeinfo --with-xpm=no --with-gif=no --with-gnutls=no
echo 'Building Emacs'
make -j 3
echo 'Running C and Rust tests'
make check
Copy path View file
@@ -19,21 +19,10 @@ env:
# Ensure that we build without warnings.
- CARGO_FLAGS="--features 'strict'"
before_script: (cargo install rustfmt || true)
before_script: (cargo install --force rustfmt || true)
script:
# Configure Emacs for building
- export PATH=$PATH:~/.cargo/bin
- cd rust_src && cargo fmt -- --write-mode=diff
- cd remacs-sys && cargo fmt -- --write-mode=diff && cd ..
- cd alloc_unexecmacosx && cargo fmt -- --write-mode=diff && cd ../..
- ./autogen.sh
# These configure flags are only required on OS X.
# TODO: remove them.
- ./configure --without-makeinfo --with-xpm=no --with-gif=no --with-gnutls=no
- make -j 3
- make check
- ./.travis.sh
notifications:
fast_finish: true
Copy path View file
@@ -175,29 +175,11 @@ EXTRA_DIST += gl_openssl.h md5.h
## end gnulib module crypto/md5
## begin gnulib module crypto/sha1
## begin crypto in rust
libgnu_a_SOURCES += sha1.c
EXTRA_DIST += sha1.h gl_openssl.h sha256.h
EXTRA_DIST += gl_openssl.h sha1.h
## end gnulib module crypto/sha1
## begin gnulib module crypto/sha256
libgnu_a_SOURCES += sha256.c
EXTRA_DIST += gl_openssl.h sha256.h
## end gnulib module crypto/sha256
## begin gnulib module crypto/sha512
libgnu_a_SOURCES += sha512.c
EXTRA_DIST += gl_openssl.h sha512.h
## end gnulib module crypto/sha512
## end crypto in rust
## begin gnulib module dirent
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.