@smbcloud / cli / commits / 9cb221e

fix error codes

Seto committed Jan 1, 2026 at 18:01 UTC 9cb221e1c9e4dfcfb8ed56be4bb931dfea82fb3f
10 files changed +538 -38
crates/smbcloud-model/src/error_codes.rs
+40 -7
@@ -44,13 +44,28 @@ pub enum ErrorCode {
44 // Account
45 #[error("Unauthorized access.")]
46 Unauthorized = 100,
47 + #[error("Invalid params.")]
48 + InvalidParams = 101,
49 + // Account not ready errors.
50 + #[error("Email not found.")]
51 + EmailNotFound = 1000,
52 + #[error("Email unverified.")]
53 + EmailNotVerified = 1001,
54 + #[error("Email confirmation failed.")]
55 + EmailConfirmationFailed = 1002,
56 + #[error("Password is unset.")]
57 + PasswordNotSet = 1003,
58 + #[error("GitHub email is not connected.")]
59 + GitHubEmailNotConnected = 1004,
60 #[error("Email already exists.")]
61 EmailAlreadyExist = 1005,
62 + #[error("Invalid password.")]
63 + InvalidPassword = 1006,
64 // Projects
65 #[error("Project not found.")]
51 - ProjectNotFound = 1000,
66 + ProjectNotFound = 2000,
67 #[error("Runner not supported.")]
53 - UnsupportedRunner = 1001,
68 + UnsupportedRunner = 2001,
69 }
70
71 impl ErrorCode {
@@ -58,11 +73,20 @@ impl ErrorCode {
73 /// so we need to get it from i32.
74 pub fn from_i32(value: i32) -> Self {
75 match value {
61 - // Account
76 + // Generic
77 100 => ErrorCode::Unauthorized,
78 + 101 => ErrorCode::InvalidParams,
79 + // Account not ready errors
80 + 1000 => ErrorCode::EmailNotFound,
81 + 1001 => ErrorCode::EmailNotVerified,
82 + 1002 => ErrorCode::EmailConfirmationFailed,
83 + 1003 => ErrorCode::PasswordNotSet,
84 + 1004 => ErrorCode::GitHubEmailNotConnected,
85 1005 => ErrorCode::EmailAlreadyExist,
86 + 1006 => ErrorCode::InvalidPassword,
87 // Projects
65 - 1000 => ErrorCode::ProjectNotFound,
88 + 2000 => ErrorCode::ProjectNotFound, // Projects
89 + 2001 => ErrorCode::UnsupportedRunner,
90 // Generic errors
91 5 => ErrorCode::Cancel,
92 4 => ErrorCode::MissingConfig,
@@ -79,19 +103,28 @@ impl ErrorCode {
103 debug!("Language code: {:?}, {}", l, self);
104 match self {
105 ErrorCode::Unknown => "Unknown error.",
82 - ErrorCode::ProjectNotFound => "Project not found.",
106 + // Networking
107 ErrorCode::ParseError => "Parse error.",
108 ErrorCode::NetworkError => {
109 "Network error. Please check your internet connection and try again."
110 }
87 - // Accounts
111 + // Generic
112 ErrorCode::Unauthorized => "Unauthorized access.",
113 + ErrorCode::InvalidParams => "Invalid parameters.",
114 + // Account not ready errors
115 + ErrorCode::EmailNotFound => "Email not found.",
116 + ErrorCode::EmailNotVerified => "Email not verified.",
117 + ErrorCode::EmailConfirmationFailed => "Email confirmation faile.",
118 + ErrorCode::PasswordNotSet => "Password is not set.",
119 + ErrorCode::GitHubEmailNotConnected => "GitHub email is not connected.",
120 ErrorCode::EmailAlreadyExist => "Email already exists.",
90 -
121 + ErrorCode::InvalidPassword => "Invalid password.",
122 + // CLI Generic errors
123 ErrorCode::InputError => "Input error.",
124 ErrorCode::MissingConfig => "Missing config.",
125 ErrorCode::Cancel => "Cancelled operation.",
126 // Projects
127 + ErrorCode::ProjectNotFound => "Project not found.",
128 ErrorCode::UnsupportedRunner => "Unsupported runner.",
129 }
130 }
gems/model/Cargo.lock
+482 -17
@@ -26,6 +26,26 @@ dependencies = [
26 "libc",
27 ]
28
29 +[[package]]
30 +name = "ansi_term"
31 +version = "0.12.1"
32 +source = "registry+https://github.com/rust-lang/crates.io-index"
33 +checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
34 +dependencies = [
35 + "winapi",
36 +]
37 +
38 +[[package]]
39 +name = "atty"
40 +version = "0.2.14"
41 +source = "registry+https://github.com/rust-lang/crates.io-index"
42 +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
43 +dependencies = [
44 + "hermit-abi",
45 + "libc",
46 + "winapi",
47 +]
48 +
49 [[package]]
50 name = "autocfg"
51 version = "1.4.0"
@@ -38,7 +58,7 @@ version = "0.69.5"
58 source = "registry+https://github.com/rust-lang/crates.io-index"
59 checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
60 dependencies = [
41 - "bitflags",
61 + "bitflags 2.9.1",
62 "cexpr",
63 "clang-sys",
64 "itertools",
@@ -52,6 +72,12 @@ dependencies = [
72 "syn 2.0.101",
73 ]
74
75 +[[package]]
76 +name = "bitflags"
77 +version = "1.3.2"
78 +source = "registry+https://github.com/rust-lang/crates.io-index"
79 +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
80 +
81 [[package]]
82 name = "bitflags"
83 version = "2.9.1"
@@ -100,7 +126,7 @@ dependencies = [
126 "num-traits",
127 "serde",
128 "wasm-bindgen",
103 - "windows-link",
129 + "windows-link 0.1.1",
130 ]
131
132 [[package]]
@@ -114,6 +140,30 @@ dependencies = [
140 "libloading",
141 ]
142
143 +[[package]]
144 +name = "clap"
145 +version = "2.34.0"
146 +source = "registry+https://github.com/rust-lang/crates.io-index"
147 +checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
148 +dependencies = [
149 + "ansi_term",
150 + "atty",
151 + "bitflags 1.3.2",
152 + "strsim",
153 + "textwrap",
154 + "unicode-width",
155 + "vec_map",
156 +]
157 +
158 +[[package]]
159 +name = "convert_case"
160 +version = "0.6.0"
161 +source = "registry+https://github.com/rust-lang/crates.io-index"
162 +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca"
163 +dependencies = [
164 + "unicode-segmentation",
165 +]
166 +
167 [[package]]
168 name = "core-foundation-sys"
169 version = "0.8.7"
@@ -126,12 +176,34 @@ version = "1.15.0"
176 source = "registry+https://github.com/rust-lang/crates.io-index"
177 checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
178
179 +[[package]]
180 +name = "generator"
181 +version = "0.7.5"
182 +source = "registry+https://github.com/rust-lang/crates.io-index"
183 +checksum = "5cc16584ff22b460a382b7feec54b23d2908d858152e5739a120b949293bd74e"
184 +dependencies = [
185 + "cc",
186 + "libc",
187 + "log",
188 + "rustversion",
189 + "windows",
190 +]
191 +
192 [[package]]
193 name = "glob"
194 version = "0.3.2"
195 source = "registry+https://github.com/rust-lang/crates.io-index"
196 checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
197
198 +[[package]]
199 +name = "heck"
200 +version = "0.3.3"
201 +source = "registry+https://github.com/rust-lang/crates.io-index"
202 +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
203 +dependencies = [
204 + "unicode-segmentation",
205 +]
206 +
207 [[package]]
208 name = "heck"
209 version = "0.4.1"
@@ -144,6 +216,15 @@ version = "0.5.0"
216 source = "registry+https://github.com/rust-lang/crates.io-index"
217 checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
218
219 +[[package]]
220 +name = "hermit-abi"
221 +version = "0.1.19"
222 +source = "registry+https://github.com/rust-lang/crates.io-index"
223 +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
224 +dependencies = [
225 + "libc",
226 +]
227 +
228 [[package]]
229 name = "iana-time-zone"
230 version = "0.1.63"
@@ -218,7 +299,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
299 checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667"
300 dependencies = [
301 "cfg-if",
221 - "windows-targets",
302 + "windows-targets 0.53.0",
303 ]
304
305 [[package]]
@@ -227,6 +308,21 @@ version = "0.4.27"
308 source = "registry+https://github.com/rust-lang/crates.io-index"
309 checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
310
311 +[[package]]
312 +name = "loom"
313 +version = "0.5.6"
314 +source = "registry+https://github.com/rust-lang/crates.io-index"
315 +checksum = "ff50ecb28bb86013e935fb6683ab1f6d3a20016f123c76fd4c27470076ac30f5"
316 +dependencies = [
317 + "cfg-if",
318 + "generator",
319 + "scoped-tls",
320 + "serde",
321 + "serde_json",
322 + "tracing",
323 + "tracing-subscriber",
324 +]
325 +
326 [[package]]
327 name = "magnus"
328 version = "0.7.1"
@@ -256,6 +352,15 @@ version = "1.0.2"
352 source = "registry+https://github.com/rust-lang/crates.io-index"
353 checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
354
355 +[[package]]
356 +name = "matchers"
357 +version = "0.2.0"
358 +source = "registry+https://github.com/rust-lang/crates.io-index"
359 +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
360 +dependencies = [
361 + "regex-automata",
362 +]
363 +
364 [[package]]
365 name = "memchr"
366 version = "2.7.4"
@@ -270,7 +375,7 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
375
376 [[package]]
377 name = "model"
273 -version = "0.1.0"
378 +version = "1.0.0"
379 dependencies = [
380 "magnus",
381 "smbcloud-model",
@@ -287,6 +392,15 @@ dependencies = [
392 "minimal-lexical",
393 ]
394
395 +[[package]]
396 +name = "nu-ansi-term"
397 +version = "0.50.3"
398 +source = "registry+https://github.com/rust-lang/crates.io-index"
399 +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
400 +dependencies = [
401 + "windows-sys",
402 +]
403 +
404 [[package]]
405 name = "num-traits"
406 version = "0.2.19"
@@ -302,6 +416,36 @@ version = "1.21.3"
416 source = "registry+https://github.com/rust-lang/crates.io-index"
417 checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
418
419 +[[package]]
420 +name = "pin-project-lite"
421 +version = "0.2.16"
422 +source = "registry+https://github.com/rust-lang/crates.io-index"
423 +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
424 +
425 +[[package]]
426 +name = "proc-macro-error"
427 +version = "1.0.4"
428 +source = "registry+https://github.com/rust-lang/crates.io-index"
429 +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
430 +dependencies = [
431 + "proc-macro-error-attr",
432 + "proc-macro2",
433 + "quote",
434 + "syn 1.0.109",
435 + "version_check",
436 +]
437 +
438 +[[package]]
439 +name = "proc-macro-error-attr"
440 +version = "1.0.4"
441 +source = "registry+https://github.com/rust-lang/crates.io-index"
442 +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
443 +dependencies = [
444 + "proc-macro2",
445 + "quote",
446 + "version_check",
447 +]
448 +
449 [[package]]
450 name = "proc-macro2"
451 version = "1.0.95"
@@ -397,6 +541,21 @@ version = "1.0.20"
541 source = "registry+https://github.com/rust-lang/crates.io-index"
542 checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
543
544 +[[package]]
545 +name = "same-file"
546 +version = "1.0.6"
547 +source = "registry+https://github.com/rust-lang/crates.io-index"
548 +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
549 +dependencies = [
550 + "winapi-util",
551 +]
552 +
553 +[[package]]
554 +name = "scoped-tls"
555 +version = "1.0.1"
556 +source = "registry+https://github.com/rust-lang/crates.io-index"
557 +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
558 +
559 [[package]]
560 name = "seq-macro"
561 version = "0.3.6"
@@ -446,6 +605,15 @@ dependencies = [
605 "syn 2.0.101",
606 ]
607
608 +[[package]]
609 +name = "sharded-slab"
610 +version = "0.1.7"
611 +source = "registry+https://github.com/rust-lang/crates.io-index"
612 +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
613 +dependencies = [
614 + "lazy_static",
615 +]
616 +
617 [[package]]
618 name = "shell-words"
619 version = "1.1.0"
@@ -459,10 +627,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
627 checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
628
629 [[package]]
462 -name = "smbcloud-model"
463 -version = "0.3.19"
630 +name = "smallvec"
631 +version = "1.15.1"
632 source = "registry+https://github.com/rust-lang/crates.io-index"
465 -checksum = "b9e9b76b207db1890fd6093b35504665c2305ad6905062dd14b0b6e6b61b0f0b"
633 +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
634 +
635 +[[package]]
636 +name = "smbcloud-model"
637 +version = "0.3.27"
638 dependencies = [
639 "chrono",
640 "log",
@@ -473,6 +645,7 @@ dependencies = [
645 "strum 0.27.1",
646 "strum_macros 0.27.1",
647 "thiserror",
648 + "tsync",
649 ]
650
651 [[package]]
@@ -486,6 +659,45 @@ dependencies = [
659 "strum 0.24.1",
660 ]
661
662 +[[package]]
663 +name = "state"
664 +version = "0.6.0"
665 +source = "registry+https://github.com/rust-lang/crates.io-index"
666 +checksum = "2b8c4a4445d81357df8b1a650d0d0d6fbbbfe99d064aa5e02f3e4022061476d8"
667 +dependencies = [
668 + "loom",
669 +]
670 +
671 +[[package]]
672 +name = "strsim"
673 +version = "0.8.0"
674 +source = "registry+https://github.com/rust-lang/crates.io-index"
675 +checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
676 +
677 +[[package]]
678 +name = "structopt"
679 +version = "0.3.26"
680 +source = "registry+https://github.com/rust-lang/crates.io-index"
681 +checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10"
682 +dependencies = [
683 + "clap",
684 + "lazy_static",
685 + "structopt-derive",
686 +]
687 +
688 +[[package]]
689 +name = "structopt-derive"
690 +version = "0.4.18"
691 +source = "registry+https://github.com/rust-lang/crates.io-index"
692 +checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0"
693 +dependencies = [
694 + "heck 0.3.3",
695 + "proc-macro-error",
696 + "proc-macro2",
697 + "quote",
698 + "syn 1.0.109",
699 +]
700 +
701 [[package]]
702 name = "strum"
703 version = "0.24.1"
@@ -549,6 +761,15 @@ dependencies = [
761 "unicode-ident",
762 ]
763
764 +[[package]]
765 +name = "textwrap"
766 +version = "0.11.0"
767 +source = "registry+https://github.com/rust-lang/crates.io-index"
768 +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
769 +dependencies = [
770 + "unicode-width",
771 +]
772 +
773 [[package]]
774 name = "thiserror"
775 version = "2.0.12"
@@ -569,12 +790,144 @@ dependencies = [
790 "syn 2.0.101",
791 ]
792
793 +[[package]]
794 +name = "thread_local"
795 +version = "1.1.9"
796 +source = "registry+https://github.com/rust-lang/crates.io-index"
797 +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
798 +dependencies = [
799 + "cfg-if",
800 +]
801 +
802 +[[package]]
803 +name = "tracing"
804 +version = "0.1.44"
805 +source = "registry+https://github.com/rust-lang/crates.io-index"
806 +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
807 +dependencies = [
808 + "pin-project-lite",
809 + "tracing-attributes",
810 + "tracing-core",
811 +]
812 +
813 +[[package]]
814 +name = "tracing-attributes"
815 +version = "0.1.31"
816 +source = "registry+https://github.com/rust-lang/crates.io-index"
817 +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
818 +dependencies = [
819 + "proc-macro2",
820 + "quote",
821 + "syn 2.0.101",
822 +]
823 +
824 +[[package]]
825 +name = "tracing-core"
826 +version = "0.1.36"
827 +source = "registry+https://github.com/rust-lang/crates.io-index"
828 +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
829 +dependencies = [
830 + "once_cell",
831 + "valuable",
832 +]
833 +
834 +[[package]]
835 +name = "tracing-log"
836 +version = "0.2.0"
837 +source = "registry+https://github.com/rust-lang/crates.io-index"
838 +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
839 +dependencies = [
840 + "log",
841 + "once_cell",
842 + "tracing-core",
843 +]
844 +
845 +[[package]]
846 +name = "tracing-subscriber"
847 +version = "0.3.22"
848 +source = "registry+https://github.com/rust-lang/crates.io-index"
849 +checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e"
850 +dependencies = [
851 + "matchers",
852 + "nu-ansi-term",
853 + "once_cell",
854 + "regex-automata",
855 + "sharded-slab",
856 + "smallvec",
857 + "thread_local",
858 + "tracing",
859 + "tracing-core",
860 + "tracing-log",
861 +]
862 +
863 +[[package]]
864 +name = "tsync"
865 +version = "2.2.1"
866 +source = "registry+https://github.com/rust-lang/crates.io-index"
867 +checksum = "4fc20a25899c5ae43735253244214f3d5eb75dd28d9cc8491732294a985adb8c"
868 +dependencies = [
869 + "convert_case",
870 + "proc-macro2",
871 + "quote",
872 + "state",
873 + "structopt",
874 + "syn 2.0.101",
875 + "tsync-macro",
876 + "walkdir",
877 +]
878 +
879 +[[package]]
880 +name = "tsync-macro"
881 +version = "0.1.0"
882 +source = "registry+https://github.com/rust-lang/crates.io-index"
883 +checksum = "8acc9e35a3072d9ea375093f321b3738ea3ac4fdebc18d2789b01581e5c2e4ae"
884 +
885 [[package]]
886 name = "unicode-ident"
887 version = "1.0.18"
888 source = "registry+https://github.com/rust-lang/crates.io-index"
889 checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
890
891 +[[package]]
892 +name = "unicode-segmentation"
893 +version = "1.12.0"
894 +source = "registry+https://github.com/rust-lang/crates.io-index"
895 +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
896 +
897 +[[package]]
898 +name = "unicode-width"
899 +version = "0.1.14"
900 +source = "registry+https://github.com/rust-lang/crates.io-index"
901 +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
902 +
903 +[[package]]
904 +name = "valuable"
905 +version = "0.1.1"
906 +source = "registry+https://github.com/rust-lang/crates.io-index"
907 +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
908 +
909 +[[package]]
910 +name = "vec_map"
911 +version = "0.8.2"
912 +source = "registry+https://github.com/rust-lang/crates.io-index"
913 +checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
914 +
915 +[[package]]
916 +name = "version_check"
917 +version = "0.9.5"
918 +source = "registry+https://github.com/rust-lang/crates.io-index"
919 +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
920 +
921 +[[package]]
922 +name = "walkdir"
923 +version = "2.5.0"
924 +source = "registry+https://github.com/rust-lang/crates.io-index"
925 +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
926 +dependencies = [
927 + "same-file",
928 + "winapi-util",
929 +]
930 +
931 [[package]]
932 name = "wasm-bindgen"
933 version = "0.2.100"
@@ -633,6 +986,46 @@ dependencies = [
986 "unicode-ident",
987 ]
988
989 +[[package]]
990 +name = "winapi"
991 +version = "0.3.9"
992 +source = "registry+https://github.com/rust-lang/crates.io-index"
993 +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
994 +dependencies = [
995 + "winapi-i686-pc-windows-gnu",
996 + "winapi-x86_64-pc-windows-gnu",
997 +]
998 +
999 +[[package]]
1000 +name = "winapi-i686-pc-windows-gnu"
1001 +version = "0.4.0"
1002 +source = "registry+https://github.com/rust-lang/crates.io-index"
1003 +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1004 +
1005 +[[package]]
1006 +name = "winapi-util"
1007 +version = "0.1.11"
1008 +source = "registry+https://github.com/rust-lang/crates.io-index"
1009 +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
1010 +dependencies = [
1011 + "windows-sys",
1012 +]
1013 +
1014 +[[package]]
1015 +name = "winapi-x86_64-pc-windows-gnu"
1016 +version = "0.4.0"
1017 +source = "registry+https://github.com/rust-lang/crates.io-index"
1018 +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1019 +
1020 +[[package]]
1021 +name = "windows"
1022 +version = "0.48.0"
1023 +source = "registry+https://github.com/rust-lang/crates.io-index"
1024 +checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
1025 +dependencies = [
1026 + "windows-targets 0.48.5",
1027 +]
1028 +
1029 [[package]]
1030 name = "windows-core"
1031 version = "0.61.2"
@@ -641,7 +1034,7 @@ checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
1034 dependencies = [
1035 "windows-implement",
1036 "windows-interface",
644 - "windows-link",
1037 + "windows-link 0.1.1",
1038 "windows-result",
1039 "windows-strings",
1040 ]
@@ -674,13 +1067,19 @@ version = "0.1.1"
1067 source = "registry+https://github.com/rust-lang/crates.io-index"
1068 checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38"
1069
1070 +[[package]]
1071 +name = "windows-link"
1072 +version = "0.2.1"
1073 +source = "registry+https://github.com/rust-lang/crates.io-index"
1074 +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
1075 +
1076 [[package]]
1077 name = "windows-result"
1078 version = "0.3.4"
1079 source = "registry+https://github.com/rust-lang/crates.io-index"
1080 checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
1081 dependencies = [
683 - "windows-link",
1082 + "windows-link 0.1.1",
1083 ]
1084
1085 [[package]]
@@ -689,7 +1088,31 @@ version = "0.4.2"
1088 source = "registry+https://github.com/rust-lang/crates.io-index"
1089 checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
1090 dependencies = [
692 - "windows-link",
1091 + "windows-link 0.1.1",
1092 +]
1093 +
1094 +[[package]]
1095 +name = "windows-sys"
1096 +version = "0.61.2"
1097 +source = "registry+https://github.com/rust-lang/crates.io-index"
1098 +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
1099 +dependencies = [
1100 + "windows-link 0.2.1",
1101 +]
1102 +
1103 +[[package]]
1104 +name = "windows-targets"
1105 +version = "0.48.5"
1106 +source = "registry+https://github.com/rust-lang/crates.io-index"
1107 +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
1108 +dependencies = [
1109 + "windows_aarch64_gnullvm 0.48.5",
1110 + "windows_aarch64_msvc 0.48.5",
1111 + "windows_i686_gnu 0.48.5",
1112 + "windows_i686_msvc 0.48.5",
1113 + "windows_x86_64_gnu 0.48.5",
1114 + "windows_x86_64_gnullvm 0.48.5",
1115 + "windows_x86_64_msvc 0.48.5",
1116 ]
1117
1118 [[package]]
@@ -698,28 +1121,46 @@ version = "0.53.0"
1121 source = "registry+https://github.com/rust-lang/crates.io-index"
1122 checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b"
1123 dependencies = [
701 - "windows_aarch64_gnullvm",
702 - "windows_aarch64_msvc",
703 - "windows_i686_gnu",
1124 + "windows_aarch64_gnullvm 0.53.0",
1125 + "windows_aarch64_msvc 0.53.0",
1126 + "windows_i686_gnu 0.53.0",
1127 "windows_i686_gnullvm",
705 - "windows_i686_msvc",
706 - "windows_x86_64_gnu",
707 - "windows_x86_64_gnullvm",
708 - "windows_x86_64_msvc",
1128 + "windows_i686_msvc 0.53.0",
1129 + "windows_x86_64_gnu 0.53.0",
1130 + "windows_x86_64_gnullvm 0.53.0",
1131 + "windows_x86_64_msvc 0.53.0",
1132 ]
1133
1134 +[[package]]
1135 +name = "windows_aarch64_gnullvm"
1136 +version = "0.48.5"
1137 +source = "registry+https://github.com/rust-lang/crates.io-index"
1138 +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
1139 +
1140 [[package]]
1141 name = "windows_aarch64_gnullvm"
1142 version = "0.53.0"
1143 source = "registry+https://github.com/rust-lang/crates.io-index"
1144 checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764"
1145
1146 +[[package]]
1147 +name = "windows_aarch64_msvc"
1148 +version = "0.48.5"
1149 +source = "registry+https://github.com/rust-lang/crates.io-index"
1150 +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
1151 +
1152 [[package]]
1153 name = "windows_aarch64_msvc"
1154 version = "0.53.0"
1155 source = "registry+https://github.com/rust-lang/crates.io-index"
1156 checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c"
1157
1158 +[[package]]
1159 +name = "windows_i686_gnu"
1160 +version = "0.48.5"
1161 +source = "registry+https://github.com/rust-lang/crates.io-index"
1162 +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
1163 +
1164 [[package]]
1165 name = "windows_i686_gnu"
1166 version = "0.53.0"
@@ -732,24 +1173,48 @@ version = "0.53.0"
1173 source = "registry+https://github.com/rust-lang/crates.io-index"
1174 checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11"
1175
1176 +[[package]]
1177 +name = "windows_i686_msvc"
1178 +version = "0.48.5"
1179 +source = "registry+https://github.com/rust-lang/crates.io-index"
1180 +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
1181 +
1182 [[package]]
1183 name = "windows_i686_msvc"
1184 version = "0.53.0"
1185 source = "registry+https://github.com/rust-lang/crates.io-index"
1186 checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d"
1187
1188 +[[package]]
1189 +name = "windows_x86_64_gnu"
1190 +version = "0.48.5"
1191 +source = "registry+https://github.com/rust-lang/crates.io-index"
1192 +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
1193 +
1194 [[package]]
1195 name = "windows_x86_64_gnu"
1196 version = "0.53.0"
1197 source = "registry+https://github.com/rust-lang/crates.io-index"
1198 checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba"
1199
1200 +[[package]]
1201 +name = "windows_x86_64_gnullvm"
1202 +version = "0.48.5"
1203 +source = "registry+https://github.com/rust-lang/crates.io-index"
1204 +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
1205 +
1206 [[package]]
1207 name = "windows_x86_64_gnullvm"
1208 version = "0.53.0"
1209 source = "registry+https://github.com/rust-lang/crates.io-index"
1210 checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57"
1211
1212 +[[package]]
1213 +name = "windows_x86_64_msvc"
1214 +version = "0.48.5"
1215 +source = "registry+https://github.com/rust-lang/crates.io-index"
1216 +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
1217 +
1218 [[package]]
1219 name = "windows_x86_64_msvc"
1220 version = "0.53.0"
gems/model/Gemfile.lock
+1 -1
@@ -1,7 +1,7 @@
1 PATH
2 remote: .
3 specs:
4 - smbcloud-model (0.3.19)
4 + smbcloud-model (0.3.27)
5 rb_sys (~> 0.9.91)
6
7 GEM
gems/model/README.md
+3 -1
@@ -1,3 +1,5 @@
1 # smbcloud-model Gem
2
3 -Ruby Gem version of `smbcloud-model`.
\ No newline at end of file
3 +Ruby Gem version of `smbcloud-model`.
4 +
5 +[Docs](./docs/gems.md).
gems/model/Rakefile
+5 -5
@@ -1,14 +1,14 @@
1 # frozen_string_literal: true
2
3 -require "bundler/gem_tasks"
4 -require "rb_sys/extensiontask"
3 +require 'bundler/gem_tasks'
4 +require 'rb_sys/extensiontask'
5
6 task build: :compile
7
8 -GEMSPEC = Gem::Specification.load("model.gemspec")
8 +GEMSPEC = Gem::Specification.load('model.gemspec')
9
10 -RbSys::ExtensionTask.new("model", GEMSPEC) do |ext|
11 - ext.lib_dir = "lib/model"
10 +RbSys::ExtensionTask.new('model', GEMSPEC) do |ext|
11 + ext.lib_dir = 'lib/model'
12 end
13
14 task default: :compile
gems/model/ext/.keep
gems/model/ext/model/Cargo.toml
+2 -2
@@ -12,5 +12,5 @@ crate-type = ["cdylib"]
12 magnus = { version = "0.7.1" }
13 strum = "0.27"
14 # Local crates
15 -smbcloud-model = "0.3.19"
16 -#smbcloud-model = { path = "./../../../../crates/smbcloud-model"}
\ No newline at end of file
15 +# smbcloud-model = "0.3"
16 +smbcloud-model = { path = "./../../../../crates/smbcloud-model"}
gems/model/lib/model.rb
+2 -2
@@ -1,7 +1,7 @@
1 # frozen_string_literal: true
2
3 -require_relative "model/version"
4 -require_relative "model/model"
3 +require_relative 'model/version'
4 +require_relative 'model/model'
5
6 module Model
7 class Error < StandardError; end
gems/model/lib/model/version.rb
+1 -1
@@ -1,5 +1,5 @@
1 # frozen_string_literal: true
2
3 module Model
4 - VERSION = "0.3.19"
4 + VERSION = '0.3.27'
5 end
gems/model/model.gemspec
+2 -2
@@ -1,9 +1,9 @@
1 # frozen_string_literal: true
2
3 -require_relative "lib/model/version"
3 +require_relative 'lib/model/version'
4
5 Gem::Specification.new do |spec|
6 - spec.name = "smbcloud-model"
6 + spec.name = 'smbcloud-model'
7 spec.version = Model::VERSION
8 spec.authors = ["paydii"]
9 spec.email = ["hej@setoelkahfi.se"]