Commit Graph

257 Commits

Author SHA1 Message Date
Floris Bruynooghe
4d8914cb3c Do not add deps already present in setup.py
We don't need those.  I was just flailing about trying to get things
to work early on.
2019-06-10 23:02:48 +02:00
Floris Bruynooghe
12e74a0645 Allow selecting the target to build
This is useful to investiage coredumps.
2019-06-10 18:07:23 +02:00
Floris Bruynooghe
5090b4d24b For development statically link dcc-rs
This links the python bindings statically to libdeltachat.a if the
DCC_RS_DEV environment variable is set to the project's root.  This is
a little simpler then requiring the manual CFLAGS and LD_LIBRARY_PATH
tweaking.

It also adds a script to easily invoke the integration tests locally
without forgetting steps.
2019-06-10 17:25:13 +02:00
Friedel Ziegelmayer
af8d056206 refactor: remove dc-strbuilder 2019-06-08 17:13:25 +02:00
Friedel Ziegelmayer
4e41dbf5ab refactor: reduce dependencies on libc 2019-06-08 17:13:05 +02:00
Friedel Ziegelmayer
39b82c2607 chore(ci): simplify appveyor
* reduce targets on appveyor to x86_64-pc-windows-msvc
* remove submodule update, not needed
* add cargo update
* run tests with --release for speed up
* prune debug folder from target cache
* debug folder pruned, no longer need rm

Closes #137
2019-06-08 13:40:26 +02:00
Floris Bruynooghe
0bce754adf Merge pull request #134 from flub/as_str
Rename to_str() -> as_str() to match stdlib naming convention
2019-06-08 10:57:24 +02:00
Lars-Magnus Skog
2ea69263e4 debug folder pruned, no longer need rm 2019-06-08 04:36:55 +02:00
Lars-Magnus Skog
f515b8a8f0 prune debug folder from target cache 2019-06-08 04:28:38 +02:00
Lars-Magnus Skog
2881b8217d run tests with --release for speed up 2019-06-08 04:07:34 +02:00
Lars-Magnus Skog
5dd5e04200 add cargo update 2019-06-08 04:01:09 +02:00
Lars-Magnus Skog
1aa591777d remove submodule update, not needed 2019-06-08 04:00:51 +02:00
Lars-Magnus Skog
bcc2eb720d chore: reduce targets on appveyor to x86_64-pc-windows-msvc 2019-06-08 04:00:05 +02:00
Lars-Magnus Skog
a32a275d73 feat: Add utility to convert OsStr to CString (#136)
* Add utility to convert OsStr to CString

This is approach seems acceptable in the context of deltachat, it
should work correctly on unix and on Windows requires paths to be
valid utf-8.

* Use failure crate for error types

* Add OsStrExt impl for Path, fix windows and update docs

- Adds an OsStrExt impl for Path directly, a little more convenience.

- Fix the windows code to actually use the right function name.  Test
  the impl function on unix too since that was the point of having it
  implemented in a separate function to begin with.

- Improve the docs, do hyperlinks a bit better.

* Another attempt at learing to type

Having your compiler in the cloud is just painful.

* Do not treat this as a fatal error

When PRs are made from forks the passwords are unavailable.  We don't
want CI to fail because of this.

* Implement using the AsRef<OsStr> trait

This means any type with implements this trait will get this
implementation, thus covering both OsStr and Path instead of having
duplicate implementations for those like before.

* fix format
2019-06-08 03:04:30 +02:00
Friedel Ziegelmayer
02e7dc022b feat: remove compile date
It has few use only and the problem to stand in the way of reproducible builds.
2019-06-07 22:41:48 +02:00
Floris Bruynooghe
855c7844b5 Rename to_str() -> as_str() to match stdlib naming convention
The function does a cast and does not create a new objects.  The
stdlib convention is to use to_*() for functions which return new
objects and as_*() for functions which keep referring to the same data
but using a different type.  Follow that convention.
2019-06-07 22:19:39 +02:00
holger krekel
34fbe11587 fix python test 2019-06-07 14:49:09 +02:00
Lars-Magnus Skog
18c0d9f83b chore: update version to 1.0.0-alpha.0 1.0.0-alpha.0 2019-06-07 13:36:15 +02:00
björn petersen
f5683f1fec fix: remove unneeded string duplication before passing to the callback 2019-06-07 13:34:00 +02:00
B. Petersen
99682f9569 remove compile date: it has few use only and the problem to stand in the way of reproducible builds 2019-06-06 15:15:38 +02:00
Friedel Ziegelmayer
ef36874c7c Cleanup cli (#111)
Cleanup cli
2019-06-06 14:13:04 +02:00
Lars-Magnus Skog
9a0a451999 chore: use rustyline@4.1.0 for now (#128)
* switch to rustyline 4.1.0

* adapt highlight_prompt to 4.1.0 format

* fix rust fmt
2019-06-06 13:13:16 +02:00
B. Petersen
05e097baaa trim() commandline as rustyline adds lineends to commands eg. from inside IntelliJ IDEA 2019-06-06 13:13:16 +02:00
dignifiedquire
dc7d23ec47 fix(x): do not enforce valid utf8 in strndup
Closes #112
2019-06-06 13:13:16 +02:00
dignifiedquire
983ccaaccd feat(examples): refactor repl to use rustyline and safe rust 2019-06-06 13:13:16 +02:00
dignifiedquire
95d4df6027 refactor: reduce dependencies on libc 2019-06-05 00:56:59 +02:00
Friedel Ziegelmayer
518935a938 refactor(context): simpler info formatting (#115)
refactor(context): simpler info formatting
2019-06-03 21:48:06 +02:00
Friedel Ziegelmayer
1386245d6c Merge pull request #117 from deltachat/unref-str
feat(ffi): add dc_str_unref
2019-06-03 13:37:54 +02:00
dignifiedquire
d11ce1e539 feat(deps): use published mmime 2019-06-02 01:08:19 +02:00
dignifiedquire
0579382173 feat(ffi): add dc_str_unref 2019-06-02 00:08:04 +02:00
dignifiedquire
f4b68236fe refactor(context): simpler info formatting 2019-06-01 17:30:34 +02:00
björn petersen
88519d07ca fix(mimefactory): fix formatting string for voice message files
adapt data-format for sent voice-messages-filename and avoid crash on sending voice messages

Closes #107
2019-05-31 23:13:31 +02:00
Friedel Ziegelmayer
60bb2288bd fix(imap): ignore uid 0 when setting flags (#109)
fix(imap): ignore uid 0 when setting flags
2019-05-30 23:21:23 +02:00
holger krekel
6ce8374513 feat: bring back and adapt python bindings with rust core
* import python, try to adapt for rust

* add missing wrapper functions

* - try to write up how to build python bindings
- strike some unused functions from deltachat.h

* adjustments to make tox work

* try to run circle-ci with python build

* don't do docs

* running cargo test as well

* don't run cargo test anymore, that's done in other ci jobs

* also build docs

* don't run doxygen anymore

* subst C with Rust

* a try to get better wheels

Closes #41
2019-05-30 23:17:38 +02:00
dignifiedquire
697b750fae fix(imap): ignore uid 0 when setting flags
Closes #98
2019-05-30 21:00:26 +02:00
Friedel Ziegelmayer
a2fc127923 feat(ffi): install global panic handler (#108) 2019-05-30 15:18:34 +02:00
Friedel Ziegelmayer
5c8bfd4370 Prepare for cross compilation to windows (#105)
Prepare for cross compilation to windows
2019-05-30 13:32:30 +02:00
dignifiedquire
37bfc3fe14 fixup: switch back to mmime master 2019-05-30 12:24:12 +02:00
dignifiedquire
37cfcae42f refactor: safe logging macros 2019-05-30 12:24:01 +02:00
dignifiedquire
f607dd3073 chore: remove unused features 2019-05-30 01:39:11 +02:00
dignifiedquire
6e6be4ef1a fixup: use fixed mmime branch 2019-05-30 01:31:37 +02:00
dignifiedquire
8154781a0d refactor: replace assert_rtn with assert macros 2019-05-30 00:34:10 +02:00
Friedel Ziegelmayer
65b073b711 Merge pull request #106 from deltachat/split-stress
Split stress, part 2
2019-05-29 23:49:27 +02:00
Lars-Magnus Skog
3142ff22fd test: move to dc_param 2019-05-29 23:43:08 +02:00
Lars-Magnus Skog
0ffdaf254f test: move dc_array tests 2019-05-29 23:43:08 +02:00
Lars-Magnus Skog
51071fb09d test: move tests for dc_utf8_strlen() 2019-05-29 23:43:08 +02:00
Lars-Magnus Skog
4175ce56eb test: remove redundant c macro tests :burn: 2019-05-29 23:43:08 +02:00
Lars-Magnus Skog
424ada818b test: move stress tests to dc_strencode and dc_tools 2019-05-29 23:43:08 +02:00
dignifiedquire
cd45a1f37c refactor: remove libc usage of snprintf and strndup 2019-05-29 22:04:30 +02:00
dignifiedquire
de0503bbab chore: remove unused imports 2019-05-29 20:31:16 +02:00