Граф коммитов

23 Коммитов

Автор SHA1 Сообщение Дата
Jan-Erik Rediger 156281aa9c Update regex dependency and reduce its feature set.
The only regex in use is a pure ASCII-only match on a length-limited
string.
We don't need any extended feature of the regex library nor any
advanced performance improvements.
Depending on the new version allows us to reduce the feature set and
thus reduce the overall code size. This makes compilation of this crate
faster and the generated libraries smaller on all platforms.

This also removes the regex feature from the env_logger, as all we need
is some default logging during development/debugging/testing.
2019-09-05 09:14:04 +02:00
Jan-Erik Rediger b5f6bc16b2 Use a dash instead of an underscore for the FFI lib name
This unifies the naming scheme.
It's `glean-core`, not `glean_core`.

Cargo converts `-` (dash) to `_` (underscore) where necessary anyway,
but on the command line you need to pass the right name (e.g. on `cargo test -p glean-ffi`)
2019-07-31 12:01:35 +02:00
Jan-Erik Rediger dd789af721 Upgrade ffi-support to get pointer support 2019-07-19 15:39:36 +02:00
Travis Long 8474d09d21 Add UuidMetricType 2019-06-24 13:28:51 -05:00
Jan-Erik Rediger 7b7aa3db5d Initialize the logger for all (integration) tests
This initializes the logger through a "constructor", that is called before `main`.
This is safe to use, re-initializing the logger has no effect.

Log ouptut can be controlled via the environment variable `RUST_LOG` for the `glean_core` crate:

```
export RUST_LOG=glean_core=debug
```

When running tests you need to tell cargo to not suppress output:

```
cargo test -- --nocapture
```

Tests run in parallel by default, leading to interleaving log lines.
This makes it harder to understand what's going on.
For debugging you can force single-threaded tests:

```
cargo test -- --nocapture --test-threads=1
```
2019-06-05 15:47:53 +02:00
Alessio Placitelli 4988565ad8 Add the Datetime metric type 2019-06-04 10:30:41 +02:00
Michael Droettboom 7470f7edba
1554275: Port PingMakerTests.kt to the rust side (#107)
* 1554275: Port PingMakerTests.kt to the rust side

* Address comments in the PR
2019-06-03 16:08:20 -04:00
Jan-Erik Rediger 265344d430 Add regex check for dynamic labels 2019-05-29 09:52:45 +02:00
Alessio Placitelli 938ce65c60 Enable logging in unit tests
This makes sure that a proper log implementation
is available in the Rust core on non-Android
platforms. Additionally, this ensures that Kotlin
code redirects log calls to stdout.
2019-05-20 15:17:04 +02:00
Jan-Erik Rediger 24c9300fa1 Upgrade ffi-support library 2019-05-14 17:54:55 +02:00
Jan-Erik Rediger e8c3b09378 Add initial error handling to core lib 2019-05-14 17:00:50 +02:00
Jan-Erik Rediger 28e317692a Remove inner singleton and rely on objects only 2019-05-08 14:06:54 +02:00
Jan-Erik Rediger bb5e43c5b5 Create data directory in application dir 2019-04-29 16:19:47 +02:00
Jan-Erik Rediger d01d3a7cce Generate a client I 2019-04-25 16:22:44 +02:00
Jan-Erik Rediger 62e82ca323 first approach at building a full ping 2019-04-25 15:22:43 +02:00
Jan-Erik Rediger 3f6c3e945a Encode type into the value
We might eventually be able to skip rkv::Value::Blob all together and go
directly to &[u8].
2019-04-25 15:00:51 +02:00
Jan-Erik Rediger d24510ed40 Record into generic store, backed by rkv 2019-04-24 17:01:52 +02:00
Jan-Erik Rediger 2b4c3ec15e Wrap the actual implementation in a lock 2019-04-24 13:44:00 +02:00
Jan-Erik Rediger 4bdcbab295 Start FFI component 2019-04-11 18:48:15 +02:00
Jan-Erik Rediger e2be66129e Storage & dumping 2019-04-08 17:31:50 +02:00
Jan-Erik Rediger cd3b88c4c2 Exploring the API possibilitie 2019-04-08 15:24:47 +02:00
Jan-Erik Rediger 7860f999f1 Changed lockfile after rebuild 2019-03-19 17:05:26 +01:00
Jan-Erik Rediger f9f7d3aca1 Reproducable builds by keeping the lock file 2019-03-18 16:32:35 +01:00