Skip to content

Commit 992ae58

Browse files
authored
feat: Implement Envelope::from_path and Envelope::from_slice (#456)
1 parent 9450540 commit 992ae58

File tree

3 files changed

+436
-5
lines changed

3 files changed

+436
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# Changelog
22

3-
## 0.27.0
3+
## Unreleased
44

55
**Breaking Changes**:
66

77
- The minium supported Rust version was bumped to **1.57.0** due to requirements from dependencies. ([#472](https://github.com/getsentry/sentry-rust/pull/472))
88
- Add the `rust-version` field to the manifest. ([#473](https://github.com/getsentry/sentry-rust/pull/473))
99
- Update to edition 2021. ([#473](https://github.com/getsentry/sentry-rust/pull/473))
1010

11+
**Features**:
12+
13+
- feat: Implement `Envelope::from_path` and `Envelope::from_slice`. ([#456](https://github.com/getsentry/sentry-rust/pull/456))
14+
1115
## 0.26.0
1216

1317
**Breaking Changes**:

sentry-types/src/protocol/attachment.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
use std::fmt;
22

3+
use serde::Deserialize;
4+
35
/// The different types an attachment can have.
4-
#[derive(Debug, Copy, Clone, PartialEq)]
6+
#[derive(Debug, Copy, Clone, Eq, PartialEq, Deserialize)]
57
pub enum AttachmentType {
8+
#[serde(rename = "event.attachment")]
69
/// (default) A standard attachment without special meaning.
710
Attachment,
811
/// A minidump file that creates an error event and is symbolicated. The
912
/// file should start with the `MDMP` magic bytes.
13+
#[serde(rename = "event.minidump")]
1014
Minidump,
1115
/// An Apple crash report file that creates an error event and is symbolicated.
16+
#[serde(rename = "event.applecrashreport")]
1217
AppleCrashReport,
1318
/// An XML file containing UE4 crash meta data. During event ingestion,
1419
/// event contexts and extra fields are extracted from this file.
20+
#[serde(rename = "unreal.context")]
1521
UnrealContext,
1622
/// A plain-text log file obtained from UE4 crashes. During event ingestion,
1723
/// the last logs are extracted into event breadcrumbs.
24+
#[serde(rename = "unreal.logs")]
1825
UnrealLogs,
1926
}
2027

0 commit comments

Comments
 (0)