Skip to content

Implement ESI interface#71

Merged
zkat merged 17 commits intomainfrom
sy/esi
Sep 16, 2025
Merged

Implement ESI interface#71
zkat merged 17 commits intomainfrom
sy/esi

Conversation

@TartanLlama
Copy link
Copy Markdown
Collaborator

@TartanLlama TartanLlama commented Sep 12, 2025

  • Adds support for the ESI crate
  • Fixes a bug with logging that resulted in failing tests
  • Fixes documentation generation

@TartanLlama TartanLlama requested a review from zkat September 12, 2025 15:50
@TartanLlama TartanLlama marked this pull request as ready for review September 15, 2025 11:24
Copy link
Copy Markdown
Member

@zkat zkat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is all kind of amazing tbh. Approving with some optional nits :)

Comment thread CMakeLists.txt
cmake_minimum_required(VERSION 3.29)

project(compute-sdk-cpp VERSION 0.3.0 LANGUAGES CXX)
project(compute-sdk-cpp VERSION 0.4.0 LANGUAGES CXX)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine for this PR, but I think we should generally leave version bumps to releases.

Comment thread examples/esi.cpp
Comment thread include/fastly/esi.h
Comment thread src/esi.rs Outdated
)
};
match result {
1 => Ok(unsafe { esi::PendingFragmentContent::PendingRequest(out_pending.read().0) }),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use an enum for this? Enums in Rust can have integer reprs:

#[repr(u8)]
enum Foo {
  Val1 = 1,
  Val2
}

match Foo::Val1 as u8 {
  1 => ...,
  _ => ...,
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@TartanLlama
Copy link
Copy Markdown
Collaborator Author

Fixes #56

@zkat zkat added the feature New feature or request label Sep 16, 2025
@zkat zkat merged commit 195dd3e into main Sep 16, 2025
6 checks passed
@zkat zkat deleted the sy/esi branch September 16, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants