Skip to content
Snippets Groups Projects
  1. Jan 18, 2022
  2. Jan 17, 2022
  3. Dec 28, 2021
  4. Dec 24, 2021
  5. Dec 20, 2021
  6. Dec 14, 2021
  7. Dec 13, 2021
  8. Dec 07, 2021
  9. Dec 03, 2021
  10. Nov 29, 2021
  11. Nov 23, 2021
    • Yaroslav Dynnikov's avatar
      Parse command line arguments · 49eecfa1
      Yaroslav Dynnikov authored
      The control flow of picodata looks as following:
      
      Picodata binary -> exec tarantool -l picodata -> libpicodata.so -> ...
      
      Since the libpicodata is a shared lib loaded by tarantool, we can't pass
      it arguments as usual. At first, tarantool parses them by itself and
      rejects uknown arguments. Secondly, it spoils argv array.
      
      To overcome these two issues, this patch introduces argparse on behalf
      of the picodata binary, and puts parsed values into the environment
      variables.
      
      P.S. Thihs is how command line args look from within libpicodata:
      
      ```console
      $ tarantool -l picodata /dev/null --opt1 foo --opt2 bar
      Hello from rust lib
      arg[0] tarantool
      arg[1] /dev/null
      arg[2] --opt1
      arg[3] foo
      arg[4] --opt2
      arg[5] bar
      arg[6] --opt2
      arg[7] bar
      ```
      49eecfa1
    • Yaroslav Dynnikov's avatar
      Add picodata entrypoint · 9223e526
      Yaroslav Dynnikov authored
      This patch introduces the new cargo package - picodata.
      
      The package consists of two parts:
      - The `picodata` binary does some env magic and executes
        `tarantool -l picodata`.
      - The `libpicodata` dylib is the starting point for further
        development.
      9223e526
  12. Nov 22, 2021
Loading