Hexalite: Java Edition
Bedrock version coming soon...
Bedrock version coming soon...
Table of contents:
We should create two code generators (one written in Kotlin and another written in Rust) which would generate entities based on fields defined in a YAML file.
As mentioned in https://github.com/HexaliteNetwork/java-edition/issues/21, "we need to create an entity data class in Kotlin with the same contents as Rust for the rest web client, this means that we would have duplicated code". This feature would fix this problem and add more flexibility to entity changes. We could also integrate this into the command-line interface for better management of this solution.
Implementing this feature in Rust is really simple though, since we can simple use function-like procedural macros¹ that read the YAML files, parse them and generate code.
I still haven't thought of a better way to implement this, but I know we can use Gradle tasks and square/kotlinpoet² for code generation.
player.yml
---
entities:
- name: Player
package: org.hexalite.generation.entity
fields:
uuid:
kotlin: java.util.UUID
rust: uuid::Uuid
hexes:
kotlin: Int
rust: u32
created_at:
kotlin: kotlinx.datetime.Instant
rust: chrono::DateTime<chrono::Utc>
Suggestions are appreciated for new sections in this issue, or if you have a better idea about how to structure it, feel free to let us know about it by commenting down below. Thank you for the attention.
✨ feature request ❗ priority: high 🏗️ structuringBumps loader-utils from 1.4.0 to 1.4.1.
8f082b3
chore(release): 1.4.14504e34
fix: security problem (#220)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Hi, we are security researchers from the Advanced Research Center at Trellix. We have began a campaign to patch a widespread bug named CVE-2007-4559. CVE-2007-4559 is a 15 year old bug in the Python tarfile package. By using extract() or extractall() on a tarfile object without sanitizing input, a maliciously crafted .tar file could perform a directory path traversal attack. We found at least one unsantized extractall() in your codebase and are providing a patch for you via pull request. The patch essentially checks to see if all tarfile members will be extracted safely and throws an exception otherwise. We encourage you to use this patch or your own solution to secure against CVE-2007-4559. Further technical information about the vulnerability can be found in this blog.
If you have further questions you may contact us through this projects lead researcher Kasimir Schulz.
A common issue between Minecraft developers on large scale projects, is that most of them create multiple database connections instead of reutilizing existing ones through a rest server or something similar. This may affect the overall performance and increase resources usage/demand unnecessarily.
Create a rest server using the following technologies:
If the Rest API address and its endpoints were discovered (which wouldn't be too difficult since the project itself is open-source), someone can API abuse to overload the network and affect user data. The proposed solution for this problem is automatically generate a JWT key required for all requests, and regenerate it every 15 minutes to avoid leakage.
✨ feature request 🤷 good first issue 🏷️ in progress ❗ priority: highThis PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| prettier (source) | 2.6.2
-> 2.7.1
| | | | |
v2.7.1
v2.7.0
""" First line Second Line """ type Person { name: String }
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| eslint-plugin-prettier | 4.0.0
-> 4.2.1
| | | | |
v4.2.1
v4.2.0
#483 7bd70b6
Thanks @JounQin! - feat: support svelte out of box
We recommend to use eslint-plugin-svelte
instead of eslint-plugin-svelte3
.
v4.1.0
stylelint-prettier
(#415) (52eec48)📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| gradle (source) | patch | 7.5
-> 7.5.1
|
v7.5.1
This is a patch release for 7.5. We recommend using 7.5.1 instead of 7.5
We would like to thank the following community members for their contributions to this release of Gradle: Michael Bailey, Josh Kasten, Marcono1234, mataha, Lieven Vaneeckhaute, kiwi-oss, Stefan Neuhaus, George Thomas, Anja Papatola, Björn Kautler, David Burström, Vladimir Sitnikov, Roland Weisleder, Konstantin Gribov, David Op de Beeck, aSemy, Rene Groeschke, Jonathan Leitschuh, Aurimas Liutikas, Jamie Tanna, Xin Wang, Atsuto Yamashita, Taeik Lim, Peter Gafert, Alex Landau, Jerry Wiltse, Tyler Burke, Matthew Haughton, Filip Daca, Simão Gomes Viana, Vaidotas Valuckas, Edgars Jasmans, Tomasz Godzik, Jeff, Lajos Veres
Switch your build to use Gradle 7.5.1 by updating your wrapper:
./gradlew wrapper --gradle-version=7.5.1
See the Gradle 7.x upgrade guide to learn about deprecations, breaking changes and other considerations when upgrading.
If you find a problem with this release, please file a bug on GitHub Issues adhering to our issue guidelines. If you're not sure you're encountering a bug, please use the forum.
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| vue | 3.2.35
-> 3.2.37
| | | | |
v3.2.37
v3.2.36
withDefaults
(#5939) (b546282), closes #5938📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| ch.qos.logback:logback-classic (source) | 1.3.0-alpha16
-> 1.3.0-beta0
| | | | |
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @vue/cli-plugin-babel | 5.0.4
-> 5.0.8
| | | | |
| @vue/cli-plugin-eslint | 5.0.4
-> 5.0.8
| | | | |
| @vue/cli-plugin-router | 5.0.4
-> 5.0.8
| | | | |
| @vue/cli-service (source) | 5.0.4
-> 5.0.8
| | | | |
v5.0.8
@vue/cli-service
@vue/cli-ui
v5.0.7
@vue/cli-service
devServer.server
option, avoid deprecation warnings (@backrunner, @sodatea)devServer.client.progress
@vue/cli-ui
v5.0.6
Fix compatibility with the upcoming Vue 2.7 (currently in alpha) and Vue Loader 15.10 (currently in beta).
In Vue 2.7, vue-template-compiler
is no longer a required peer dependency. Rather, there's a new export under the main package as vue/compiler-sfc
.
v5.0.5
@vue/cli
@vue/cli-service
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @babel/core (source) | 7.18.0
-> 7.18.10
| | | | |
| @babel/eslint-parser (source) | 7.17.0
-> 7.18.9
| | | | |
v7.18.10
babel-helper-string-parser
, babel-types
cooked
for templateElement
(@liuxingbaoyu)babel-parser
babel-helper-string-parser
, babel-parser
babel-plugin-transform-typescript
declare class
in namespace should be removed (@yimingjfe)babel-plugin-transform-react-jsx
babel-generator
babel-helper-wrap-function
, babel-plugin-transform-async-to-generator
, babel-traverse
.yarnrc
file (@liuxingbaoyu)make
commands cross-platform (@liuxingbaoyu)babel-traverse
babel-cli
babel-parser
babel-core
, babel-parser
babel-cli
, babel-core
, babel-parser
, babel-plugin-transform-unicode-escapes
, babel-preset-env
, babel-template
, babel-traverse
babel-helper-string-parser
, babel-parser
babel-cli
, babel-node
babel-{cli,node}
(@liuxingbaoyu)babel-plugin-proposal-export-default-from
export-default-from
transform (@magic-akari)v7.18.9
babel-plugin-transform-modules-systemjs
, babel-types
babel-generator
returnType
with comments generates incorrect code (@liuxingbaoyu)babel-cli
babel-cli
is ready. (@liuxingbaoyu)babel-core
, babel-helper-remap-async-to-generator
, babel-helpers
, babel-parser
, babel-plugin-transform-block-scoping
, babel-preset-env
babel-helper-create-class-features-plugin
, babel-helper-member-expression-to-functions
, babel-helper-remap-async-to-generator
, babel-helper-replace-supers
, babel-helper-wrap-function
, babel-helpers
, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
, babel-plugin-proposal-decorators
, babel-plugin-proposal-object-rest-spread
, babel-plugin-proposal-optional-chaining
, babel-plugin-transform-block-scoping
, babel-plugin-transform-classes
, babel-traverse
, babel-types
babel-generator
v7.18.6
babel-parser
...<...>
followed by newline or binary operator (@nicolo-ribaudo)babel-generator
, babel-parser
, babel-preset-env
, babel-template
babel-helper-remap-async-to-generator
, babel-plugin-proposal-async-generator-functions
await
in computed class keys (@Yokubjon-J)babel-plugin-transform-parameters
babel-core
babel-core
(@liuxingbaoyu)babel-core
, babel-helper-check-duplicate-nodes
, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression
, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
, babel-plugin-proposal-destructuring-private
, babel-plugin-proposal-optional-chaining
, babel-plugin-transform-runtime
import { types } from "@​babel/core"
with native ESM (@nicolo-ribaudo)babel-standalone
proposal-unicode-sets-regex
to @babel/standalone
(@nicolo-ribaudo)babel-generator
, babel-types
babel-code-frame
, babel-core
, babel-generator
, babel-helper-annotate-as-pure
, babel-helper-builder-binary-assignment-operator-visitor
, babel-helper-builder-react-jsx
, babel-helper-check-duplicate-nodes
, babel-helper-compilation-targets
, babel-helper-create-class-features-plugin
, babel-helper-create-regexp-features-plugin
, babel-helper-define-map
, babel-helper-explode-assignable-expression
, babel-helper-fixtures
, babel-helper-function-name
, babel-helper-hoist-variables
, babel-helper-member-expression-to-functions
, babel-helper-module-imports
, babel-helper-module-transforms
, babel-helper-optimise-call-expression
, babel-helper-plugin-test-runner
, babel-helper-plugin-utils
, babel-helper-remap-async-to-generator
, babel-helper-replace-supers
, babel-helper-simple-access
, babel-helper-split-export-declaration
, babel-helper-transform-fixture-test-runner
, babel-helper-validator-option
, babel-helper-wrap-function
, babel-helpers
, babel-highlight
, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
, babel-plugin-external-helpers
, babel-plugin-proposal-async-generator-functions
, babel-plugin-proposal-class-static-block
, babel-plugin-proposal-decorators
, babel-plugin-proposal-destructuring-private
, babel-plugin-proposal-function-bind
, babel-plugin-proposal-function-sent
, babel-plugin-proposal-json-strings
, babel-plugin-proposal-object-rest-spread
, babel-plugin-proposal-optional-chaining
, babel-plugin-proposal-partial-application
, babel-plugin-proposal-pipeline-operator
, babel-plugin-proposal-private-property-in-object
, babel-plugin-proposal-record-and-tuple
, babel-plugin-syntax-typescript
, babel-plugin-transform-block-scoped-functions
, babel-plugin-transform-block-scoping
, babel-plugin-transform-classes
, babel-plugin-transform-computed-properties
, babel-plugin-transform-destructuring
, babel-plugin-transform-duplicate-keys
, babel-plugin-transform-exponentiation-operator
, babel-plugin-transform-flow-comments
, babel-plugin-transform-flow-strip-types
, babel-plugin-transform-for-of
, babel-plugin-transform-function-name
, babel-plugin-transform-modules-amd
, babel-plugin-transform-modules-commonjs
, babel-plugin-transform-modules-systemjs
, babel-plugin-transform-modules-umd
, babel-plugin-transform-object-super
, babel-plugin-transform-parameters
, babel-plugin-transform-property-mutators
, babel-plugin-transform-proto-to-assign
, babel-plugin-transform-react-constant-elements
, babel-plugin-transform-react-display-name
, babel-plugin-transform-react-inline-elements
, babel-plugin-transform-react-jsx-compat
, babel-plugin-transform-react-jsx-source
, babel-plugin-transform-react-jsx
, babel-plugin-transform-runtime
, babel-plugin-transform-typescript
, babel-plugin-transform-unicode-escapes
, babel-preset-env
, babel-preset-typescript
, babel-standalone
, babel-template
, babel-traverse
, babel-types
babel-core
, babel-helper-transform-fixture-test-runner
, babel-plugin-transform-destructuring
v7.18.5
babel-plugin-transform-new-target
new.target
with shadowed class name (@liuxingbaoyu)babel-plugin-transform-modules-systemjs
babel-traverse
_guessExecutionStatusRelativeTo
(@nicolo-ribaudo)babel-core
babel-parser
babel-traverse
_guessExecutionStatusRelativeToDifferentFunctions
perf (@liuxingbaoyu)v7.18.2
babel-plugin-transform-template-literals
babel-helpers
@babel/runtime
(@Jack-Works)babel-runtime-corejs2
, babel-runtime-corejs3
, babel-runtime
regeneratorRuntime
in @babel/runtime/regenerator
(@nicolo-ribaudo)babel-helper-environment-visitor
, babel-helper-replace-supers
, babel-plugin-proposal-class-properties
, babel-plugin-proposal-decorators
, babel-traverse
, babel-types
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.
Bumps loader-utils from 1.4.0 to 1.4.2.
Sourced from loader-utils's releases.
v1.4.2
1.4.2 (2022-11-11)
Bug Fixes
v1.4.1
1.4.1 (2022-11-07)
Bug Fixes
Sourced from loader-utils's changelog.
1.4.2 (2022-11-11)
Bug Fixes
1.4.1 (2022-11-07)
Bug Fixes
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| serde_yaml | dependencies | minor | ^0.8
-> ^0.9
|
v0.9.14
Deserializer
for TaggedValue
and &TaggedValue
(#339)v0.9.13
True
, TRUE
, False
, FALSE
as booleans, Null
, NULL
as null (#330)v0.9.12
Support deserializing tagged literal scalar into primitive (#327)
"foo": !!int |-
7200
v0.9.11
v0.9.10
Display
for Number
produce the same representation as serializing (#316)v0.9.9
v0.9.8
TaggedValue
when used with to_value
(#313)v0.9.7
v0.9.6
v0.9.5
v0.9.4
serde_yaml::with::singleton_map
for serialization of enums as a 1-entry map (#300)Mapping
or Value
(#301)v0.9.3
v0.9.2
Debug
representation of serde_yaml::Error
v0.9.1
v0.9.0
API documentation: https://docs.rs/serde_yaml/0.9
The serde_yaml::Value
enum gains a Tagged
variant which represents the deserialization of YAML's !Tag
syntax. Tagged scalars, sequences, and mappings are all supported.
An empty YAML input (or document containing only comments) will deserialize successfully to an empty map, empty sequence, or Serde struct as long as the struct has only optional fields. Previously this would error.
A new .apply_merge()
method on Value
implements YAML's <<
merge key convention.
The Debug
representation of serde_yaml::Value
has gotten vastly better (https://github.com/dtolnay/serde-yaml/pull/287).
Deserialization of borrowed strings now works.
#[derive(Deserialize, Debug)]
struct Struct<'a> {
borrowed: &'a str,
}
let yaml = "borrowed: 'kölcsönzött'\n";
let value: Struct = serde_yaml::from_str(yaml)?;
println!("{:#?}", value);
Value
's and Mapping
's methods get
and get_mut
have been generalized to support a &str argument, as opposed to requiring you to allocate and construct a Value::String
for indexing into another existing Value
.
Mapping
exposes more APIs that have become conventional on map data structures, such as .keys()
, .values()
, .into_keys()
, .into_values()
, .values_mut()
, and .retain(|k, v| …)
.
Serialization no longer produces leading ---\n
on the serialized output. You can prepend this yourself if your use case demands it.
Serialization of enum variants is now based on YAML's !Tag
syntax, rather than JSON-style singleton maps.
#[derive(Serialize, Deserialize)]
enum Enum {
Newtype(usize),
Tuple(usize, usize, usize),
Struct { x: f64, y: f64 },
}
- !Newtype 1
- !Tuple [0, 0, 0]
- !Struct {x: 1.0, y: 2.0}
A bunch of non-base-10 edge cases in number parsing have been resolved. For example 0x+1
and ++0x1
are now parsed as strings, whereas they used to be incorrectly treated as numbers.
Deserializers obtained through iteration can no longer be iterated further:
let deserializer = serde_yaml::Deserializer::from_str(multiple_documents);
for de in deserializer {
// correct:
let myvalue = T::deserialize(de)?;
// incorrect: used to produce some questionable result, now produces 0 sub-documents
for questionable in de {
let wat = T::deserialize(questionable)?;
}
}
The abandoned yaml-rust crate is no longer used as the YAML backend. The new libyaml-based backend surely has different edge cases and quirks than yaml-rust.
Some excessive PartialEq
impls have been eliminated.
The serde_yaml::to_vec
function has been removed. Use serde_yaml::to_writer
for doing I/O, or use serde_yaml::to_string
+ .into_bytes()
on the resulting String.
The serde_yaml::seed
module has been removed. Now that a serde_yaml::Deserializer
is publicly available, the same use cases can be addressed via seed.deserialize(Deserializer::from_str(…))
instead.
Empty values in a mapping are supported, and deserialize to empty string when the corresponding struct field is of type string. Previously they would deserialize to "~" which makes no sense.
128-bit integer deserialization now supports hex and octal input.
Serde_yaml now includes a mitigation against a "billion laughs" attack in which malicious input involving YAML anchors and aliases is used to consume an amount of processing or memory that is exponential in the size of the input document. Serde_yaml will quickly produce an error in this situation instead.
v0.8.26
flush
method to Serializer (#251, thanks @jturner314-nrl)v0.8.25
v0.8.24
indexmap
/autocfg
not always properly detecting whether a std
sysroot crate is available (#243, thanks @cuviper)v0.8.23
+
or -
sign (#228)v0.8.22
v0.8.21
v0.8.20
v0.8.19
Entry
API for serde_yaml::Mapping (https://docs.rs/serde_yaml/0.8.19/serde_yaml/struct.Mapping.html#method.entry)v0.8.18
v0.8.17
v0.8.16
Add a Serializer and Deserializer type (#185, #186)
let mut buffer = Vec::new();
let mut ser = serde_yaml::Serializer::new(&mut buffer);
let mut object = BTreeMap::new();
object.insert("k", 107);
object.serialize(&mut ser)?;
let de = serde_yaml::Deserializer::from_slice(&buffer);
let value = Value::deserialize(de)?;
println!("{:?}", value);
Support multi-doc serialization (#187)
let mut buffer = Vec::new();
let mut ser = serde_yaml::Serializer::new(&mut buffer);
let mut object = BTreeMap::new();
object.insert("k", 107);
object.serialize(&mut ser)?;
object.insert("j", 106);
object.serialize(&mut ser)?;
assert_eq!(buffer, b"---\nk: 107\n...\n---\nj: 106\nk: 107\n");
Support multi-doc deserialization (#189)
let input = "---\nk: 107\n...\n---\nj: 106\n";
for document in serde_yaml::Deserializer::from_str(input) {
let value = Value::deserialize(document)?;
println!("{:?}", value);
}
v0.8.15
v0.8.14
v0.8.13
v0.8.12
serde_yaml::mapping
module containing Mapping
's various iterator types: Iter
, IterMut
, IntoIter
.nan
and .inf
and -.inf
are YAML's permitted representations for NaN and infinityv0.8.11
v0.8.10
v0.8.9
Value::get_mut
to index into a &mut Value, returning Optionv0.8.8
Default
for serde_yaml::Value
which produces Value::Null
(#120, thanks @macisamuele)v0.8.7
v0.8.6
v0.8.5
v0.8.4
v0.8.3
v0.8.2
v0.8.1
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| serde_with | dependencies | minor | ^1.13
-> ^1.14
|
v1.14.0
: serde_with v1.14.0Add support for time
crate v0.3 #450
time::Duration
can now be serialized with the DurationSeconds
and related converters.
// Rust
#[serde_as(as = "serde_with::DurationSeconds<u64>")]
value: Duration,
// JSON
"value": 86400,
time::OffsetDateTime
and time::PrimitiveDateTime
can now be serialized with the TimestampSeconds
and related converters.
// Rust
#[serde_as(as = "serde_with::TimestampMicroSecondsWithFrac<String>")]
value: time::PrimitiveDateTime,
// JSON
"value": "1000000",
time::OffsetDateTime
can be serialized in string format in different well-known formats.
Two formats are supported, time::format_description::well_known::Rfc2822
and time::format_description::well_known::Rfc3339
.
// Rust
#[serde_as(as = "time::format_description::well_known::Rfc2822")]
rfc_2822: OffsetDateTime,
#[serde_as(as = "Vec<time::format_description::well_known::Rfc3339>")]
rfc_3339: Vec<OffsetDateTime>,
// JSON
"rfc_2822": "Fri, 21 Nov 1997 09:55:06 -0600",
"rfc_3339": ["1997-11-21T09:55:06-06:00"],
Deserialize bool
from integers #456 462
Deserialize an integer and convert it into a bool
.
BoolFromInt<Strict>
(default) deserializes 0 to false
and 1
to true
, other numbers are errors.
BoolFromInt<Flexible>
deserializes any non-zero as true
.
Serialization only emits 0/1.
// Rust
#[serde_as(as = "BoolFromInt")] // BoolFromInt<Strict>
b: bool,
// JSON
"b": 1,
time
requires that version.#[serde_as]
and #[skip_serializing_none]
attributes must always be places before #[derive]
.📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| prost-types | dependencies | minor | ^0.10
-> ^0.11
|
v0.11.2
PROST! is a Protocol Buffers implementation for the Rust Language. prost
generates simple, idiomatic Rust code from proto2
and proto3
files.
This patch updates brings a few new features and fixes:
protoc
sourcing instructions in error messages.Clone
to Service
types.v0.11.1
: prost-types-v0.11.1v0.11.0
PROST! is a Protocol Buffers implementation for the Rust Language. prost
generates simple, idiomatic Rust code from proto2
and proto3
files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
prost-build
now requires protoc
to be available in the path or set
via the PROTOC
env var.prost-types
now contains new Timestamp
/Duration
FromStr
implementations.1.56
and all crates have been moved to edition 2021Notible changes that are not breaking:
prost-build
now has a cleanup-markdown
feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.prost-build
now generates as_str_name
for message types.v0.10.1
PROST! is a Protocol Buffers implementation for the Rust Language. prost
generates simple, idiomatic Rust code from proto2
and proto3
files.
This minor release brings no new code changes but symlinks license files in all the crates.
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| prost | dependencies | minor | ^0.10
-> ^0.11
|
v0.11.3
PROST! is a Protocol Buffers implementation for the Rust Language. prost
generates simple, idiomatic Rust code from proto2
and proto3
files.
This patch updates brings a few new features and fixes:
log
to print error logs.v0.11.2
PROST! is a Protocol Buffers implementation for the Rust Language. prost
generates simple, idiomatic Rust code from proto2
and proto3
files.
This patch updates brings a few new features and fixes:
protoc
sourcing instructions in error messages.Clone
to Service
types.v0.11.0
PROST! is a Protocol Buffers implementation for the Rust Language. prost
generates simple, idiomatic Rust code from proto2
and proto3
files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
prost-build
now requires protoc
to be available in the path or set
via the PROTOC
env var.prost-types
now contains new Timestamp
/Duration
FromStr
implementations.1.56
and all crates have been moved to edition 2021Notible changes that are not breaking:
prost-build
now has a cleanup-markdown
feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.prost-build
now generates as_str_name
for message types.v0.10.4
PROST! is a Protocol Buffers implementation for the Rust Language. prost
generates simple, idiomatic Rust code from proto2
and proto3
files.
Small fix for compiling protoc from source to speed up compile times.
v0.10.3
PROST! is a Protocol Buffers implementation for the Rust Language. prost
generates simple, idiomatic Rust code from proto2
and proto3
files.
This release reverts #605 and contains some typo fixes.
(this release is actually the v0.10.2
release but prost-build
had to be yanked because of a local publish issue)
v0.10.2
PROST! is a Protocol Buffers implementation for the Rust Language. prost
generates simple, idiomatic Rust code from proto2
and proto3
files.
This release reverts #605 and contains some typo fixes.
(this release was yanked due to missing third-party source, v0.10.3
is now the active release for this)
v0.10.1
PROST! is a Protocol Buffers implementation for the Rust Language. prost
generates simple, idiomatic Rust code from proto2
and proto3
files.
This minor release brings no new code changes but symlinks license files in all the crates.
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| phf | dependencies | minor | ^0.10
-> ^0.11
|
v0.11.1
: phf v0.11.1phf_map
remove now-unnecessary proc-macro-hack
crate usage
Resolves #255.
This resolves an issue with Windows Defender identifying proc-macro-hack
as threats. It also sheds
a depedency that is no longer necessary, now that the MSRV of this crate is 1.46 and
proc-macro-hack
is only useful for providing support for Rust versions 1.31 through 1.45. Per
upstream:
Note: As of Rust 1.45 this crate is superseded by native support for #[proc_macro] in expression position. Only consider using this crate if you care about supporting compilers between 1.31 and 1.45.
Map::new()
function and Default
implementation to create new, empty map (baac7d0
)cargo-smart-release
(cb84cf6
)32a72c3
)1af3b0f
)d2efdc0
)36ec885
)b9d25da
)proc-macro-hack
crate usage (caf1ce7
)92e7b43
)a3e04bc
)71fd47c
)11bb242
)4cc8344
)Map
. (b6c682e
)phf_map
(6be1599
)6941e82
)d8cfc43
)d9b5ff2
)588ac25
)9b71978
)e47e4dc
)99d3533
)f474922
)8868d08
)63886f6
)2ca46c4
)a9e4b0a
)dd86c6c
)9adc370
)ddecc3a
)unicase_support
to unicase
(b47174b
)2a6087f
)std::borrow::Borrow
with PhfBorrow
for ordered maps and sets (f43a9cf
)std::borrow::Borrow
with new PhfBorrow
trait (b2f3a9c
)0ab0108
)[patch.crates-io]
section instead of path key (f47515b
)caec346
)a285906
)db4ce56
)4060288
)eee56c0
)8ae2bb8
)core
feature to default std
feature (645e23d
)9b70bd9
)8fc18be
)4fc0d1a
)9ff66ab
)83fd51c
)1287414
)364ed47
)e3a7442
)588fd1a
)a050b6f
)ab88405
)6c7e2d9
)8d23b15
)61142c5
)f631f50
)0a98dd1
)3f71765
)21ecf72
)8bf29c1
)20f896e
)fee66fc
)d761144
)888f623
)0cc3844
)4769a6d
)9b75ee5
)index
documentation (44e495f
)a004227
)c43154b
)b7d29df
)aad0b9b
)c9e7a93
)58e2223
)5bcd5c9
)751c94b
)fd71c31
)70f2ed9
)7c3f757
)fda44f5
)c7c0d3c
)d3b2ea0
)96ef156
)77ea239
)98183e1
)642b69d
)index
methods to OrderedMap
and OrderedSet
. (d2af00d
)9cb9de9
)555a690
)e215273
)0b68ea5
)5810d30
)7e32f39
)d8be84e
2015-03-29) (built 2015-03-29) (7d74f1f
)36efc72
)eabadcf
)271ccc2
)ede14df
)cf64ebb
)4fdb533
)4d28684
)59ca586
)e1e6d3b
)fc45373
)8eca797
)40dbc32
)d4c189a
)822f4e3
)f014882
)cd637ca
)6c065fc
2015-02-17) (built 2015-02-18) (cbd9a41
)044f690
)fbbb530
)bfc36c9
)b09a174
)9bd8705
)271e784
)3db7cef
)e1c53fc
)f8ef160
)6866c1b
)b0c5e3c
)d9ddf45
)2f63ded
)24555b1
)ca0e9f6
)69ca376
)f7fb510
)81b54b2
)09d6870
)c50d107
)28af2aa
)39e098a
)384ead4
)8683be2
)c5a4f31
)88700a2
)5135f02
)28cbe70
)0b22188
)bb858f1
)d83f551
)c3ae5ac
)360bf81
)ab4786c
)6963a16
)f678635
)2b4863f
)4f5902c
)3c36bfb
)69d92b8
)4a0d48d
)0fba837
)49dbb36
)fc2539f
)0a80b06
)d96a1e5
)9103fc5
)e26947c
)4546f51
)98dde65
)14627f5
)43d9a50
)d20c311
)4ad2bb2
)6a7cc6e
)6e3a54d
)ff7dad4
)2f3c605
)aa3e2d0
)bf62eb8
)aec5aab
)88d54c2
)7ced000
)88abf6c
)af2dd53
)f585e4c
)b697d13
)d120067
)5752604
)8f5c0f0
)eadea0b
)de193c7
)f17bae1
)b2416db
)7fc934a
)719de47
)b44065b
)83a8116
)dd3d0f1
)15cc179
)49647cd
)2fe6940
)bd10658
)a1b5030
)4bf6f82
)35701e2
)68458d3
)3c2661d
)85a3b28
)2f75f5f
)b16d440
)3687c0e
)af0a11c
)92ec57a
)20dea1d
)d6e5d77
)13b9389
)2a650ef
)9c4d247
)b2220d9
)3ab5bd1
)f79814a
)c9ca9b1
)61eea75
)20a1e83
)3995dbc
)95f3c90
)25aeba6
)6372fa4
)6718b60
)19c4f8d
)a8bb815
)4b48972
)a90e7cc
)55ededf
)789990e
)6bfb12b
)f6ce641
)cb4ed93
)a0ab8d7
)4ff3544
)v0.11.0
Map::new()
function and Default
implementation to create new, empty map by @msrd0 in https://github.com/rust-phf/rust-phf/pull/249actions/checkout
to v3 by @JohnTitor in https://github.com/rust-phf/rust-phf/pull/253proc-macro-hack
crate usage by @ErichDonGubler in https://github.com/rust-phf/rust-phf/pull/256Full Changelog: https://github.com/rust-phf/rust-phf/compare/v0.10.1...v0.11.0
v0.10.1
See the changelog for details.
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
QuotesApp-JWoC Android + Kotlin Project for the 2022 edition of the Open Source Contribution competition, JGEC Winter of Code aka JWoC. ?? Project Obj
Loop is a mobile app that helps you create and maintain good habits, allowing you to achieve your long-term goals. Detailed graphs and statistics show you how your habits improved over time.
WAntiChatPro An outdated or modern anti-cheat plugin for Minecraft: Bedrock Edition servers (NukkitX). Following description is excerpt from previous
PokedexApp Pokedex A simple Pokedex App getting API with Retrofit, maintaining data using LiveData, and Material Design based on MVVM architecture. Te
FDPClient A free mixin-based injection hacked-client for Minecraft using Minecra
CoinBit CoinBit is a beautiful CryptoCurrency app, completely open sourced and 100% in kotlin. It supports following features Track prices of over 300
Turtle Player Free, Fully Fledged & Open-Source. The Music Player for Android. Turtle Player is designed to be a fun and unique app for playing your m
Smack About Smack is an open-source, highly modular, easy to use, XMPP client library written in Java for Java SE compatible JVMs and Android. Being a
Smack About Smack is an open-source, highly modular, easy to use, XMPP client library written in Java for Java SE compatible JVMs and Android. Being a
GymRoutines noahjutz.codeberg.page/gymroutines An Open-Source Android app for creating training plans and tracking progress. Screenshots Contributing
AdventOfCode2021 This is the code developed for Advent of Code 2021. My primary goals are: have fun learn something new about Kotlin don't spend more
PhotoGallery app An app from the book 'Android Programming (4th edition)' by Big Nerd Ranch Learned and worked with: Retrofit: Flickr API Calls @GET,
Lemuroid Description Lemuroid is an open-source emulation project for Android based on Libretro. Its main goal is ease of use, good Android integratio
mine.js(Developing) Minecraft Java Edition Scripting with JS(V8 Engine) by Netherald How to apply? Download Paper or Bungee Version. and put it to plu
TwitchWhitelist This is a customisable 1.8-1.19 Spigot Plugin to Whitelist Players via Twitch Channel Points Rewards. Setup Setup a PaperMC (recommend
freegemas-gdx Freegemas libGDX is an Android, HTML 5 and Java desktop port of Freegemas, which in turn is an open source version of the well known Bej
freegemas-gdx Freegemas libGDX is an Android, HTML 5 and Java desktop port of Freegemas, which in turn is an open source version of the well known Bej
Arch Scanner Requirements: JDK 12 Scanner: scan_git - Git commit history scan scan_jacoco - Jacoco scan scan_bytecode - for JVM languages known issues
PngNote is a free, open-source, handwriting note-taking app based on BOOX SDK. Use BOOX SDK: Leverage raw-rendering feature, similar stylus lag to the