chore: update version to 1.0.0-alpha.0

This commit is contained in:
Lars-Magnus Skog
2019-06-07 13:36:15 +02:00
committed by Friedel Ziegelmayer
parent f5683f1fec
commit 18c0d9f83b
7 changed files with 9 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "deltachat" name = "deltachat"
version = "0.1.0" version = "1.0.0-alpha.0"
authors = ["dignifiedquire <dignifiedquire@gmail.com>"] authors = ["dignifiedquire <dignifiedquire@gmail.com>"]
edition = "2018" edition = "2018"

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "deltachat_ffi" name = "deltachat_ffi"
version = "0.1.0" version = "1.0.0-alpha.0"
description = "Deltachat FFI" description = "Deltachat FFI"
authors = ["dignifiedquire <dignifiedquire@gmail.com>"] authors = ["dignifiedquire <dignifiedquire@gmail.com>"]
edition = "2018" edition = "2018"

View File

@@ -11,9 +11,6 @@ extern "C" {
#endif #endif
#define DC_VERSION_STR "0.43.0"
/** /**
* @mainpage Getting started * @mainpage Getting started
* *

View File

@@ -12,8 +12,6 @@ extern crate human_panic;
use deltachat::*; use deltachat::*;
pub const DC_VERSION_STR: &'static str = "0.43.0\x00";
// TODO: constants // TODO: constants
// dc_context_t // dc_context_t

View File

@@ -1,6 +1,6 @@
//! Constants //! Constants
pub const VERSION: &'static [u8; 7] = b"0.43.0\x00"; pub const DC_VERSION_STR: &'static [u8; 14] = b"1.0.0-alpha.0\x00";
pub const DC_MOVE_STATE_MOVING: u32 = 3; pub const DC_MOVE_STATE_MOVING: u32 = 3;
pub const DC_MOVE_STATE_STAY: u32 = 2; pub const DC_MOVE_STATE_STAY: u32 = 2;

View File

@@ -549,7 +549,7 @@ static mut sys_config_keys: [*const libc::c_char; 3] = [
unsafe fn get_sys_config_str(key: *const libc::c_char) -> *mut libc::c_char { unsafe fn get_sys_config_str(key: *const libc::c_char) -> *mut libc::c_char {
if strcmp(key, b"sys.version\x00" as *const u8 as *const libc::c_char) == 0 { if strcmp(key, b"sys.version\x00" as *const u8 as *const libc::c_char) == 0 {
return dc_strdup(VERSION as *const u8 as *const libc::c_char); return dc_strdup(DC_VERSION_STR as *const u8 as *const libc::c_char);
} else if strcmp( } else if strcmp(
key, key,
b"sys.msgsize_max_recommended\x00" as *const u8 as *const libc::c_char, b"sys.msgsize_max_recommended\x00" as *const u8 as *const libc::c_char,
@@ -755,7 +755,7 @@ pub unsafe fn dc_get_info(context: &Context) -> *mut libc::c_char {
public_key_count={}\n\ public_key_count={}\n\
fingerprint={}\n\ fingerprint={}\n\
level=awesome\n", level=awesome\n",
to_str(VERSION as *const u8 as *const _), to_str(DC_VERSION_STR as *const u8 as *const _),
to_str(libsqlite3_sys::SQLITE_VERSION as *const u8 as *const libc::c_char), to_str(libsqlite3_sys::SQLITE_VERSION as *const u8 as *const libc::c_char),
sqlite3_threadsafe(), sqlite3_threadsafe(),
// arch // arch
@@ -809,7 +809,7 @@ pub unsafe fn dc_get_info(context: &Context) -> *mut libc::c_char {
} }
pub unsafe fn dc_get_version_str() -> *mut libc::c_char { pub unsafe fn dc_get_version_str() -> *mut libc::c_char {
dc_strdup(VERSION as *const u8 as *const libc::c_char) dc_strdup(DC_VERSION_STR as *const u8 as *const libc::c_char)
} }
pub unsafe fn dc_get_fresh_msgs(context: &Context) -> *mut dc_array_t { pub unsafe fn dc_get_fresh_msgs(context: &Context) -> *mut dc_array_t {

View File

@@ -8,7 +8,7 @@ use mmime::mailmime_write_mem::*;
use mmime::mmapstring::*; use mmime::mmapstring::*;
use mmime::other::*; use mmime::other::*;
use crate::constants::VERSION; use crate::constants::DC_VERSION_STR;
use crate::context::Context; use crate::context::Context;
use crate::dc_chat::*; use crate::dc_chat::*;
use crate::dc_contact::*; use crate::dc_contact::*;
@@ -464,7 +464,7 @@ pub unsafe fn dc_mimefactory_render(mut factory: *mut dc_mimefactory_t) -> libc:
strdup(b"X-Mailer\x00" as *const u8 as *const libc::c_char), strdup(b"X-Mailer\x00" as *const u8 as *const libc::c_char),
dc_mprintf( dc_mprintf(
b"Delta Chat Core %s%s%s\x00" as *const u8 as *const libc::c_char, b"Delta Chat Core %s%s%s\x00" as *const u8 as *const libc::c_char,
VERSION as *const u8 as *const libc::c_char, DC_VERSION_STR as *const u8 as *const libc::c_char,
if !(*(*factory).context).os_name.is_null() { if !(*(*factory).context).os_name.is_null() {
b"/\x00" as *const u8 as *const libc::c_char b"/\x00" as *const u8 as *const libc::c_char
} else { } else {
@@ -957,7 +957,7 @@ pub unsafe fn dc_mimefactory_render(mut factory: *mut dc_mimefactory_t) -> libc:
message_text2 = message_text2 =
dc_mprintf(b"Reporting-UA: Delta Chat %s\r\nOriginal-Recipient: rfc822;%s\r\nFinal-Recipient: rfc822;%s\r\nOriginal-Message-ID: <%s>\r\nDisposition: manual-action/MDN-sent-automatically; displayed\r\n\x00" dc_mprintf(b"Reporting-UA: Delta Chat %s\r\nOriginal-Recipient: rfc822;%s\r\nFinal-Recipient: rfc822;%s\r\nOriginal-Message-ID: <%s>\r\nDisposition: manual-action/MDN-sent-automatically; displayed\r\n\x00"
as *const u8 as *const libc::c_char, as *const u8 as *const libc::c_char,
VERSION as *const u8 as *const libc::c_char, DC_VERSION_STR as *const u8 as *const libc::c_char,
(*factory).from_addr, (*factory).from_addr, (*factory).from_addr, (*factory).from_addr,
(*(*factory).msg).rfc724_mid); (*(*factory).msg).rfc724_mid);
let content_type_0: *mut mailmime_content = mailmime_content_new_with_str( let content_type_0: *mut mailmime_content = mailmime_content_new_with_str(