File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " springql-client-c"
3
- version = " 0.3.1"
3
+ version = " 0.3.1+2 "
4
4
5
5
authors = [
" Sho Nakatani <[email protected] >" ]
6
6
license = " MIT OR Apache-2.0"
Original file line number Diff line number Diff line change @@ -25,6 +25,14 @@ All you need to do are:
25
25
26
26
See [ ` c_example/ ` ] ( https://github.com/SpringQL/SpringQL-client-c/tree/main/c_example ) for how to write and build a SpringQL embedded application.
27
27
28
+ ## Versioning
29
+
30
+ [ Semantic versioning] ( https://semver.org/ ) in ` <major>.<minor>.<patch>(\+<build>)? ` format.
31
+
32
+ ` <major>.<minor>.<patch> ` is exactly the same as the version of ` springql-core ` crate.
33
+
34
+ ` <build> ` is an incremental number. ` N ` th build (` N > 1 ` ) for the ` springql-core vX.Y.Z ` is ` vX.Y.Z+N ` , for example.
35
+
28
36
## Development
29
37
30
38
### Build
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use std::{
8
8
os:: raw:: { c_char, c_int} ,
9
9
} ;
10
10
11
- use log:: { error , warn} ;
11
+ use log:: { info , warn} ;
12
12
use springql_core:: error:: SpringError ;
13
13
14
14
use crate :: { cstr:: strcpy, spring_errno:: SpringErrno } ;
@@ -38,7 +38,7 @@ impl Error for LastError {
38
38
impl Display for LastError {
39
39
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
40
40
let s = match self {
41
- LastError :: SpringErr ( e) => format ! ( "{}" , e) ,
41
+ LastError :: SpringErr ( e) => format ! ( "{:? }" , e) ,
42
42
LastError :: UnwindErr ( any) => {
43
43
if let Some ( s) = any. downcast_ref :: < String > ( ) {
44
44
s. clone ( )
@@ -55,7 +55,7 @@ impl Display for LastError {
55
55
56
56
/// Update the most recent error, clearing whatever may have been there before.
57
57
pub ( super ) fn update_last_error ( err : LastError ) {
58
- error ! ( "Setting LAST_ERROR: {}" , err) ;
58
+ info ! ( "Setting LAST_ERROR: {}" , err) ;
59
59
60
60
{
61
61
// Print a pseudo-backtrace for this error, following back each error's
You can’t perform that action at this time.
0 commit comments