1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-22 12:42:28 +00:00
Commit graph

304 commits

Author SHA1 Message Date
dc26e9a02e
improve cors doc 2020-05-16 14:22:23 +02:00
94abc75268
works on my machineTM 2020-05-16 13:59:47 +02:00
20818b0f95
enable doc test for default features 2020-05-16 01:06:07 +02:00
4ff5a8d7e4
doctest fix #26 2020-05-16 01:06:07 +02:00
msrd0
604494651d Merge branch 'cors' into 'master'
Allow configuring CORS

Closes #22

See merge request msrd0/gotham-restful!14
2020-05-15 19:36:30 +00:00
74ef0af512
cors tests 2020-05-15 21:19:26 +02:00
f20c768d02
cors preflight 2020-05-14 23:30:59 +02:00
748bf65d3e
cors for non-preflight requests 2020-05-13 19:11:22 +02:00
40c90e6b4a
no need to use stringify! in a proc macro 2020-05-09 18:10:50 +02:00
b9002bd70d
remove Resource::name() method and update resource documentation 2020-05-09 18:01:47 +02:00
6680887b84
add trybuild tests for OpenapiType and Resource derive macros 2020-05-09 15:29:29 +02:00
9ed24c9bcb
ci: use cargo sweep instead of cargo clean 2020-05-09 03:27:58 +02:00
e2eb9b0fcc
fix 2020-05-08 22:54:54 +02:00
b1b9858da4
ci: run cargo clean before caching
the shared runners ofter run out of memory when creating the cache, but
are definitely far too slow to be able to work without caching, so try
to minimize the amout of storage required.
2020-05-08 21:52:57 +02:00
e05f9bb963
a whole bunch of tests for the method macros 2020-05-08 18:39:23 +02:00
4bf0bd7b09
add design goals to readme 2020-05-08 15:10:37 +02:00
ea80689db2
update badges 2020-05-06 17:28:36 +02:00
f8181bcb7e
cargo test is stupid 2020-05-06 17:19:17 +02:00
e470f060e3
deploy documentation as gitlab pages 2020-05-06 15:58:11 +02:00
b1801f2486
update log4rs 2020-05-06 13:46:22 +02:00
5587ded60d
merge workspace and main crate 2020-05-05 23:18:05 +02:00
52679ad29d
remove FromBodyNoError and replace with std::convert::Infallible 2020-05-05 23:08:57 +02:00
4cd2474d90
add documentation and some traits for Raw<T> 2020-05-05 23:05:17 +02:00
bccefa8248
make tarpaulin not timeout 2020-05-05 19:57:13 +02:00
e5f13792c6
doc & test for RequestBody 2020-05-05 19:50:23 +02:00
aa9fa0f457
doc & ui-test for FromBody 2020-05-05 19:31:02 +02:00
e7e55514a2
support scopes inside openapi router (implements #5) 2020-05-05 00:34:19 +02:00
022edede62
the next release will be 0.1.0, not 0.0.5 2020-05-04 23:52:09 +02:00
msrd0
d8c4215cc2 Merge branch 'rename-update-and-delete' into 'master'
Rename update and delete methods

Closes #17

See merge request msrd0/gotham-restful!13
2020-05-04 21:48:45 +00:00
a1acc06f6d
update doc 2020-05-04 23:38:39 +02:00
cc86d3396c
rename update to change, delete to remove, and remove rest_ prefix from macros 2020-05-04 20:45:46 +02:00
3de130e104
emit proper error message for async fn read_all(state: &State) 2020-05-04 20:30:15 +02:00
110ef2be7a
simplify derive/macro code 2020-05-04 19:08:22 +02:00
7ef964b0a0
fix 2020-05-04 00:27:14 +02:00
328ebf821e
some minor improvements 2020-05-03 23:46:46 +02:00
992d9be195
use less non-public syn api 2020-05-03 23:43:42 +02:00
5e5e3aaf9d
don't use syn::token module 2020-05-03 23:25:48 +02:00
da30f34d97
use DeriveInput for input into derive macros from syn 2020-05-03 23:10:19 +02:00
f7157dcf62
add some tests for OpenapiBuilder 2020-05-03 19:17:55 +02:00
101e94b900
improve test coverage for the result types 2020-05-03 18:49:23 +02:00
msrd0
0d95ca4abb Merge branch 'error-derive' into 'master'
Allow custom error types through a macro and allow them to be used with Result

Closes #13 and #9

See merge request msrd0/gotham-restful!12
2020-05-01 14:48:11 +00:00
msrd0
d754d6044d Allow custom error types through a macro and allow them to be used with Result 2020-05-01 14:48:11 +00:00
8593e133b7
also detect _state as state argument 2020-04-30 16:49:40 +02:00
a36993f615
there is no need to force people to take &State arg
this highly improves async compatibility
2020-04-30 00:37:24 +02:00
cd7cf07318
rust can't think for itself 2020-04-29 21:00:06 +02:00
e013af8e18
remove some of the &mut &mut types (#6) 2020-04-29 19:22:32 +02:00
45eac21726
Proper OpenAPI type for path parameters (Fixes #18) 2020-04-29 19:10:11 +02:00
9fd0bceaf4
move openapi operation extraction code into its own mod 2020-04-27 02:12:51 +02:00
01f818e268
split the openapi code into several files 2020-04-26 22:34:22 +02:00
b4eaeca01c
don't require the get_openapi call be the last one to contain the full spec 2020-04-26 22:20:07 +02:00