Commit Graph

244 Commits

Author SHA1 Message Date
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
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
dignifiedquire 62e54c7291 refactor: drop libc based directory reading 2019-05-29 20:21:59 +02:00
dignifiedquire c9c3ac3c23 fix: do not generate ptrs inside map 2019-05-29 19:14:10 +02:00
dignifiedquire 31daa425cf refactor: remove usage of printf 2019-05-29 19:06:36 +02:00
Friedel Ziegelmayer fe30950f33 fix: peerstate.addr to c string in dc_handle_degrade_event() (#103)
fix: peerstate.addr to c string in dc_handle_degrade_event()
2019-05-29 11:29:53 +02:00
Friedel Ziegelmayer 00d9f5e0e1 refactor: remove sprintf (#102)
refactor: remove sprintf
2019-05-29 11:29:37 +02:00
Lars-Magnus Skog 34921db88f fix: peerstate.addr to c string in dc_handle_degrade_event() 2019-05-29 03:09:44 +02:00
dignifiedquire 21341b7a51 refactor: remove sprintf 2019-05-29 02:03:55 +02:00
Friedel Ziegelmayer c8b8f3f7bf Fix more bugs (#99)
Fix more bugs
2019-05-29 00:43:42 +02:00
Friedel Ziegelmayer 0b47efe5d8 docs: add quick intro to repl tool (#101)
docs: add quick intro to repl tool
2019-05-29 00:42:41 +02:00
Lars-Magnus Skog 1c0431e2f2 Remove incorrect comment on building header file 2019-05-29 00:38:32 +02:00
Lars-Magnus Skog 377014928e Remove list of commands 2019-05-29 00:37:30 +02:00
Lars-Magnus Skog 6ad8f3aeb4 docs: add quick intro to repl tool 2019-05-29 00:34:35 +02:00
dignifiedquire 30195a3bfd fix(job): only move if a mvbox folder is configured
Closes #100
2019-05-29 00:30:07 +02:00