Skip to content

Added support for i8 and char types in rs_loader#661

Draft
SATVIKsynopsis wants to merge 8 commits intometacall:developfrom
SATVIKsynopsis:types_i8_char
Draft

Added support for i8 and char types in rs_loader#661
SATVIKsynopsis wants to merge 8 commits intometacall:developfrom
SATVIKsynopsis:types_i8_char

Conversation

@SATVIKsynopsis
Copy link
Copy Markdown
Contributor

Description

This PR adds support for i8 and char types in Rust loader.

Fixes NA

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Documentation update

Checklist:

  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests/screenshots (if any) that prove my fix is effective or that my feature works.
  • I have tested the tests implicated (if any) by my own code and they pass (make test or ctest -VV -R <test-name>).
  • If my change is significant or breaking, I have passed all tests with ./docker-compose.sh test &> output and attached the output.
  • I have tested my code with OPTION_BUILD_ADDRESS_SANITIZER or ./docker-compose.sh test-address-sanitizer &> output and OPTION_TEST_MEMORYCHECK.
  • I have tested my code with OPTION_BUILD_THREAD_SANITIZER or ./docker-compose.sh test-thread-sanitizer &> output.
  • I have tested with Helgrind in case my code works with threading.
  • I have run make clang-format in order to format my code and my code follows the style guidelines.

If you are unclear about any of the above checks, have a look at our documentation here.

@viferga
Copy link
Copy Markdown
Member

viferga commented Mar 4, 2026

it does not include i8 and also has this comment in the top: // these types are not compatible

can you investigate why?

@viferga viferga marked this pull request as draft March 4, 2026 21:03
@SATVIKsynopsis
Copy link
Copy Markdown
Contributor Author

SATVIKsynopsis commented Mar 8, 2026

Added the support for map type and added tests for it.

@SATVIKsynopsis
Copy link
Copy Markdown
Contributor Author

Added add_map_string_string, add_map_string_int, and add_map_int_string functions in basic.rs with corresponding tests in metacall_rust_test.cpp.

fn metacall_value_to_map(v: *mut c_void) -> *mut *mut c_void;
// fn metacall_value_to_ptr(v: *mut c_void) -> *mut c_void;
fn metacall_value_to_ptr(v: *mut c_void) -> *mut c_void;
fn metacall_value_create_ptr(ptr: *const c_void) -> *mut c_void;
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.

group this with all the create apis

// Array = 9,
// Map = 10,
Map = 10,
// Pointer = 11,
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.

shouldn't this be uncomment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants