Pat Sier
f5e19ddf9a
Migrate tests to use maplibre-gl ( #449 )
...
Migrates the HTML test files to use `maplibre-gl` instead of `mapbox-gl`. I kept the same version as in `tests/debug-maplibre.html` and used the Carto Positron style on `tests/debug.html` because it was the closet to Mapbox's light style.
2022-10-16 14:56:29 -04:00
Yuri Astrakhan
911076e3bc
Mostly noop code refactorings ( #439 )
...
* remove most of the utils:: and dev:: namespace usage
* rename `configure_db_source` to `configure_db_sources`
* use defaults from other table info objects (using the `..obj` syntax)
* use doc comments vs regular comment in a few places
* refactor server_test.rs to make it more readable and much shorter
* use a macro for identical code
* use a test_get() for identical GET request
* rename fn test_foo() into fn foo() for simplicity
2022-10-12 11:52:26 +03:00
Yuri Astrakhan
92f768bb3e
Configuration cleanup: step 2 ( #425 )
...
A few minor simplifications in the config and appstate:
* default srid seems to be unused.
* simplify Config struct to have non-optional table and function sources. Ok to be empty.
* add a parsing unit test
* rename configs to distinct names for simplicity
I am making this as a separate PR to keep things easier -- the big upcoming PR will use a dynamic dispatch system for all types of sources
2022-10-05 22:12:44 +03:00
Yuri Astrakhan
aed3274162
Breakup config for pg and srv ( #420 )
...
Getting ready for multi-backend system, where each backend would have its own configuration.
All 3 config structs (clap args, config, and configbuilder) are now separated into 3 files - the main one, one for service (actix stuff), and one for PostgreSQL.
The files have been moved to `/pg` and `/srv`, but otherwise the logic should be mostly intact.
2022-10-01 07:48:11 +00:00
Yuri Astrakhan
47ed143d8f
Clean up configuration system to use Clap ( #415 )
...
* Use latest Clap-derive (currently v4rc, but should be public within a few days)
* reorganize configuration to streamline different config sources into one Config (using multiple ConfigBuilders)
2022-09-28 04:19:23 -04:00
Yuri Astrakhan
1e8e676e44
feat: use latest actix, switch to bb8 (async everywhere), remove actions ( #377 )
...
* remove all actions and other low-level magic code, making it more straightforward for the most common usage
* replace r2d2 with bb8 to make it all async
* use first significant version in cargo.toml - this makes it easier to maintain
This fixes #349
2022-08-15 09:54:48 -04:00
Yuri Astrakhan
7a14d6a3ed
feat!: remove --watch support ( #381 )
...
BREAKING CHANGE: Remove --watch support and ignore the command line parameter
2022-08-10 12:23:44 -04:00
Yuri Astrakhan
ad6c5297dd
sort use-statements during fmt ( #376 )
...
This does not force automatic use statement sorting,
but it sorts all them now, and we can manually keep them ordered until
the fmt features becomes stable.
2022-08-06 12:48:10 -04:00
Yuri Astrakhan
4a26366a60
chore: use tilejson 0.3.1 and simplify ( #341 ) (h/t @nyurik)
...
* bounds merging is now built-in into Bounds as Add/AddAssign
* use Bounds::MAX instead of hard-coding it everywhere
2022-05-30 14:06:44 +03:00
Yuri Astrakhan
623f574a10
chore: remove extern, optimize use, fmt str ( #338 ) (h/t @nyurik)
2022-05-29 20:00:49 +03:00
zhangzhang
5e2b6279b9
add maplibre example ( #340 ) (h/t @sharkAndshark)
2022-05-29 20:00:05 +03:00
Yuri Astrakhan
66876d5254
chore: migrate to TileJSON v0.3 ( #330 ) (h/t @nyurik)
...
* use `tilejson!` to generate json object
* use `Bounds` everywhere when appropriate
2022-05-27 14:04:27 +03:00
Yuri Astrakhan
d0655fd2b3
Use 2021 edition, modern format ( #331 ) (h/t @nyurik)
...
* switch to 2021 rust edition
* use `format!("{var}")` instead of `"{}", var`
2022-05-27 14:03:48 +03:00
Stepan Kuzmin
b3401785b2
feat: add default SRID support ( #308 )
...
* feat: add default SRID support
2022-02-13 15:43:52 +03:00
Stepan Kuzmin
c8141e1c65
test: add function source tests ( #271 )
2021-10-23 17:02:18 +03:00
Stepan Kuzmin
069c8edf6b
test: add table source tests ( #270 )
2021-10-23 16:16:50 +03:00
Stepan Kuzmin
fc9170d164
feat: add multiple geometry columns support in table sources ( #269 )
...
* feat: add multiple geometry columns support in table sources
* test: add multiple geometry tests
2021-10-21 12:20:33 +03:00
Stepan Kuzmin
f2d56c2f7d
fix: tiles attribute in tilejson with x-rewrite-url ( #266 )
2021-10-15 18:19:36 +03:00
Stepan Kuzmin
194a83e63f
feat: add minzoom and maxzoom support ( #265 )
2021-10-13 14:51:29 +03:00
Stepan Kuzmin
206307fd22
test: add config and multiple zoom level tests ( #262 )
...
* test: add config and multiple zoom level tests
* test: add more fixtures
* test: use ST_CurveToLine in function source fixtures
* test: update vtzero binaries
2021-10-12 17:56:45 +03:00
Stepan Kuzmin
40b0a0c26a
feat: add bounds to tilejson endpoints ( #260 ) (h/t @jaspervercnocke)
2021-10-10 12:09:56 +03:00
Stepan Kuzmin
1a25129925
chore: improve debug.html ( #257 )
2021-10-07 19:54:25 +03:00
Paul FLORENCE
49942734af
fix: invalid json escaping ( #224 ) (h/t @gbip)
...
* Fix invalid json escaping
* test: add test for function_source with query params
2021-07-16 12:09:18 +03:00
Stepan Kuzmin
3c01125fc5
feat: add composite sources support ( #184 )
...
* feat: add composite sources support WIP
* feat: handle empty composite sources
* fix: decompose queries
* docs: add docs on composite sources
* ci: push docker image
* test: add composite source tests
2021-04-24 20:19:37 +03:00
AdriSolid
7622731ccf
docs: add deckgl example ( #186 ) (h/t @AdriSolid)
...
* docs: add deckgl example
* Update README.md
Co-authored-by: Stepan Kuzmin <to.stepan.kuzmin@gmail.com>
2021-02-25 13:33:44 +03:00
Stepan Kuzmin
e953aa35a6
docs: add Leaflet example ( #185 )
2021-02-23 12:01:45 +03:00
Mazedur Rahman
fce1a9e722
feat: add server heartbeat for monitoring the service health ( #168 ) (h/t @yamaszone)
...
* Added a simple health check to detect service heartbeat
* Test coverage for healthz endpoint
2021-01-16 16:11:19 +03:00
Stepan Kuzmin
7d5dfa8174
chore: drop mdillon postgis in favor of official image ( #157 )
2020-12-27 16:35:05 +03:00
Stepan Kuzmin
c1c59e158d
feat: add ssl/tls support #63 ( #90 )
...
* feat: add ssl/tls support #63
* feat: add danger-accept-invalid-certs option
* ci: switch to ekidd/rust-musl-builder:stable
* ci: enable docker/build-push-action
2020-06-02 09:49:21 +03:00
Stepan Kuzmin
1e34676a14
ci: refactor CI ( #86 )
...
* style: run fmt
* ci: run release only on tags
* ci: switch to actions/checkout@v2
* ci: add grcov
* ci: update docker job
2020-05-05 14:13:48 +03:00
Stepan Kuzmin
ad3076812d
feat: upgrade to actix-web 2.0 ( #80 )
...
* chore: update actix-web to 2.0
* fix: use default CORS middleware
2020-04-26 17:57:13 +03:00
Stepan Kuzmin
5a807e40e2
feat: upgrade actix-web to 1.0 ( #33 )
...
* test: 💍 add function sources tests
* test: 💍 limit postgres pool size in tests
* feat: 🎸 upgrade actix-web to 1.0
2019-10-26 20:37:49 +03:00
Stepan Kuzmin
3222a1d074
ci: 🎡 add vtzero check
2019-09-29 15:32:19 +03:00
Stepan Kuzmin
2f6cc93745
chore: update dependencies
2019-08-30 18:42:24 +03:00
Stepan Kuzmin
5eeef48b30
feat: 🎸 add watch mode #12
...
Closes : #12
2019-03-16 18:53:21 +03:00
Stepan Kuzmin
cbe9e89909
docs: ✏️ add notes on debugging
2019-02-04 20:22:04 +03:00
Stepan Kuzmin
ca8b330544
docs: ✏️ add config.yaml example to README.md
2019-02-04 13:40:01 +03:00
Stepan Kuzmin
73d8e86860
chore: update dependencies
2018-10-17 12:11:23 +03:00
Stepan Kuzmin
be2cc3ea6f
doc: update README.md
2018-10-12 18:18:34 +03:00
Stepan Kuzmin
33be63e661
doc: update README.md
2018-10-11 15:01:47 +03:00
Stepan Kuzmin
12f1db9835
chore: add debug page
2018-10-09 15:00:25 +03:00
Stepan Kuzmin
334cf72107
test: add table and function source tests
2018-08-25 16:43:31 +03:00
Stepan Kuzmin
ccc986d037
test: add sources_not_found_test
2018-08-25 15:45:04 +03:00
Stepan Kuzmin
1e3422c09a
WIP: switch to actix
2018-02-21 13:37:31 +03:00
Stepan Kuzmin
35483156e0
fix tests
2018-02-12 13:28:54 +03:00
Stepan Kuzmin
8ad3fccd8a
fix tests
2018-01-30 12:36:48 +03:00
Stepan Kuzmin
cd637e1ecc
disable cache in tests
2018-01-26 12:49:21 +03:00
Stepan Kuzmin
77cd4ae3d2
add martin_lib crate
2018-01-19 14:06:01 +03:00